$("#selectId > option").each(function() {
alert(this.text + ' ' + this.value);
});
More Related Contents:
- Prevent users from submitting a form by hitting Enter
- Using .text() to retrieve only text not nested in child tags
- How to allow only numeric (0-9) in HTML inputbox using jQuery?
- Selecting element by data attribute with jQuery
- How can I get the button that caused the submit from the form submit event?
- jQuery.ajax() method’s async option deprecated, what now?
- How to define multiple CSS attributes in jQuery?
- how to access the $(this) inside ajax success callback function
- resize font to fit in a div (on one line)
- Difference between jQuery parent(), parents() and closest() functions
- How to change options of with jQuery?
- Why does JQuery have dollar signs everywhere?
- Error :Request header field Content-Type is not allowed by Access-Control-Allow-Headers
- jquery .live(‘click’) vs .click()
- Difference between .success() and .complete()?
- How can I change the css class rules using jQuery?
- iPad/iPhone hover problem causes the user to double click a link
- Simple ASP.NET MVC CRUD views opening/closing in JavaScript UI dialog
- jquery mousewheel: detecting when the wheel stops?
- Chaining jQuery animations that affect different elements
- jQuery: there is a way to apply colour (tint) to an image?
- how can I use data posted from ajax in flask?
- jquery – keep window from changing scroll position while prepending items to a list?
- How to make Chrome remember password for an AJAX form?
- Ajax Form submit with preventDefault
- How to cancel a jquery.load()?
- Get value from hidden field using jQuery
- jQuery autoComplete view all on click?
- Re-attaching jQuery detach();
- Custom CSS to allow chrome textarea resize smaller than initial state?