Deselect all options in dropdown with jQuery
Here's how you deselect all the values in a dropdown with jQuery
$("#dropdown").each(function(){
$("#dropdown").removeAttr("selected");
});
By Steven Dobbelaere
Email: info@stevendobbelaere.be
Address: Zebrastraat 20/301 9000 Ghent
Tel.: 0472 39 88 79
Follow me on
Twitter
Facebook
LinkedIn
Skype username: stevendobbelaere
Call me on skype:
Eindelijk custom styles in google docs #googledocs
http://t.co/4KJbGu3r
Posted 4 hours ago
Een rtfm momentje #ikea #bureaustoel
Posted yesterday
Here's how you deselect all the values in a dropdown with jQuery
$("#dropdown").each(function(){
$("#dropdown").removeAttr("selected");
});