Clear data in dropdown list using jQuery

by 4:15 AM 0 comments

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

ravi tuwar


Cras justo odio, dapibus ac facilisis in, egestas eget quam. Curabitur blandit tempus porttitor. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.


Post a Comment