I need to make a default select value from the drop down where the data is dynamically generated.
<html>
<tr><td><Select id="charge" name="charge"/></td></tr>
</html>
I had used so ajax call to get the data and populated the list in to the id:charge. Now from the list i need to keep one values as a default select . Can any one help me .
$(document).ready(function(){
$('[name=charge]').val( 'Funds' );
});
but it does not work.