0

I have this code:

$('select[name="dropdown"]').change(function() {

var item = this.selectedIndex;

why does selectedIndex return undefined when I wrap $(this)

I thought if this is already an jQuery object, than nothing will happen when I wrap with redundant $

Is there need to check something before wrapping with $ ?

what does exactly it means to wrap with $ ?

Elad Benda
  • 35,076
  • 87
  • 265
  • 471

0 Answers0