jQuery – Reset Select Options
If you need to reset select options try the following:
var select = jQuery('#someSelect'); select.val(jQuery('options:first', select).val());
Regardless of the first option being blank or not, this will reset the currently selected option to first option. In my opinion it’s always good practice to have a blank first option so the user can easily see it has been reset.
- Symfony – Add ReCaptcha to JQuery Dialog (Lightbox)
- jQuery – UI Dialog – Internet Explorer 8 (IE8) Issue with Ajax Response
- jQuery – Reverse Each
- JQuery is your friend