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
One correct way to get selected value would be
var selected_value = $('#fruit_name').val()
And then you should do
if(selected_value) { ... }