/ Published in: JavaScript
Expand |
Embed | Plain Text
$('#field').find('option:first').attr('selected', 'selected').parent('select');
Comments
Subscribe to comments
You need to login to post a comment.

Perfect, just what I was looking for. Thanks =)
+1, just what I needed
This is really quite a convoluted example. I would use this:
The above example is taken from my article on manipulating select lists with jQuery: jQuery Using and Manipulating Select Lists
I love seeing code made simpler, thanks @Treffynnon