Hey friends so many times we need to clear the data in a dropdown list or list box...
So here is the way to remove all data frop dropdown list..!
$('#selectlist option').each(function(i, option){ $(option).remove(); });
Hope you enjoyed...
" There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies. "
Ravi Tuvar – IntelliMedia Networks
Software Developer
Cell: (+91) 73837-94530
Email: ravituvar@yahoo.com
0 comments:
Post a Comment