The following code returns ‘undefined’… $('select').change(function(){ alert($(this).data('id')); }); <select> <option data-id="1">one</option> <option data-id="2">two</option> <option data-id="3">three</option> </select> 9 Answers 9
  • May 14, 2022
  • 0 Comments
In jQuery, $("...").get(3) returns the 3rd DOM element. What is the function to return the 3rd jQuery element? 11 Answers 11
  • May 12, 2022
  • 0 Comments