I have a select box that is being populated dynamically from a database. As of right now the population of this check box is working flawlessly.
I have added functio
To check whether select box has any values:
if( $('#fruit_name').has('option').length > 0 ) {
To check whether selected value is empty:
if( !$('#fruit_name').val() ) {