How was it working in FF ? Thank you! I appreciate it. May 14, 2016 06:59 AM | Fei Han - MSFT | LINK Thank you! BTW I did a little fiddling with your own script and it seems that the problem is Select2 4.0.1, assigning value using JQuery is not working. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. I just removed that selector with specific class name of the element which I was using the inputmask for and the select2 seems to be working fine now! Answer: Use the jQuery :selected Selector. rev 2021.1.15.38327, Stack Overflow works best with JavaScript enabled, Where developers & technologists share private knowledge with coworkers, Programming & related technical career opportunities, Recruit tech talent & build your employer brand, Reach developers & technologists worldwide. 2. Thank you! Is there an “exists” function for jQuery? Hi guys, I have these two dropdown lists, the second one dynamically filling from a MySQL DB depending on the selection of the first dropdown list. https://makitweb.com/change-selected-option-in-select2-dropdown-with-jquery With help of code we can set the Select Options selected value by using jQuery . site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. Re: Jquery button click is not working in asp .net content place holder page. {"z2941604":[14737000000995074,14737000000995111],"z3125715":[14737000000994128,14737000000994134,14737000000994168,14737000000994257],"z30317085":[14737000004833023]}. (The select is generated with a maze of PHP functions in an app I just inherited, so this is a quick fix while I get my head around those Type the characters you see in the picture below. Clicking the “Add option” button adds a new option to the end of the select and makes it the selected one. HTMLSelectElement] - it is not an id, class, name, tag name - you'll get, Provide the permalink of a topic that is related to this topic, $(this + "option:selected").attr("rel") option selected is not working in IE, Re: $(this + "option:selected").attr("rel") option selected is not working in IE,