I have a form which contains a dropdown list of countries generated from database. The values are stored in database. There is an option in which user can view or update the val
Please Select $list = array('1', '2', '3', '4', '5', '6'); while ($L = array_shift($list)) { ?> > = $L ?> } ?>
you can simple get the selected option with this:
$("#list").val();
try please.