I need the option element that the user clicked on the multiple choice button in Internet Explorer. StackOverflow suggested the following questions:
Get click access in multiple drop-down lists
How to get clicked parameter value for multiple selection raised by .change () event
but none of them work in Internet Exploder.
Example 1: https://jsfiddle.net/c8q956dr/
$("body").on("click", "select[multiple]", function(e) { log("click: "+ e.target.value); });
this works by attaching the click event to the select element and works fine in Chrome / Firefox as they return the parameter that the user clicked on the event.target element. IE, on the other hand, returns the entire select element and offers no indication of which option was clicked.
2: https://jsfiddle.net/55up15Lb/1/
$("select option").click( function(e) { log("click: "+ this.value); });
, click , IE.
IE 8, 9 11. ?
:
Source: https://habr.com/ru/post/1589508/More articles:Why is Invalid Write (Valgrind) located here - cSwift creates a reference to a mutable array - swiftMySQL TABLES USERS and FLASHCARDS - how to change one depending on the other? - jqueryBarplot ignores colorpalette - rIs it possible to run a Python application on a WordPress site? - pythonHow to find which points intersect with a polygon in geodants? - pythonHow to get clicked parameter value for multiple selection caused by .change () event - javascriptC # - WPF - Project size after adding icons (loading icon from resources or pulling from an EXE project) - c #Background color from table column - cssNeed to mirror video orientation and rotate the knob when using the front camera - iosAll Articles