I don’t believe the click event is valid on options. It is valid, however, on select elements. Give this a try:
$("select#yourSelect").change(function(){
process($(this).children(":selected").html());
});
More Related Contents:
- Selecting text on focus using jQuery not working in Safari and Chrome
- jQuery get value of select onChange
- Why does the jquery change event not trigger when I set the value of a select using val()?
- Why does Chrome ignore local jQuery cookies?
- Auto resizing the SELECT element according to selected OPTION’s width
- Best way to unselect a in jQuery?
- The specified value does not conform to the required format yyyy-MM-dd
- WebKit issues with event.layerX and event.layerY
- How to make the first option of selected with jQuery
- jQuery .attr(“disabled”, “disabled”) not working in Chrome
- How do you stop Chrome and Opera sorting JSON objects by Index ASC?
- How to bind to localStorage change event using jQuery for all browsers?
- Distinguish Chrome from Safari using jQuery.browser
- What makes a jQuery object show up as an array in Chrome’s Developer Tools?
- jquery ajax problem in chrome
- Chrome showing error as: Refused to execute inline script because of Content-Security-Policy
- Weird Chrome prototype/jQuery conflict
- CORS request – why are the cookies not sent?
- How to make Chrome remember password for an AJAX form?
- Populate Select box options on click with Javascript/Jquery with Json data
- Get index of selected option with jQuery
- How to detect if a browser is Chrome using jQuery?
- Google Chrome viewport-anchored expand direction with flexbox
- jQuery behaving strange after page refresh (F5) in Chrome
- Disable select options based on value *through the HTML only!*
- Unselect what was selected in an input with .select()
- Custom CSS to allow chrome textarea resize smaller than initial state?
- jQuery onchange/onfocus select box to display an image?
- JQuery :contains function limit to exact match
- Chrome file upload bug: on change event won’t be executed twice with the same file