-2

I am using JQuery 1.8.3. I need to disable all select drop downs which ever id starts with rowNum and i have below code for that.

 $('select[id^=rowNum]').prop("disabled","disabled");

Above code works only in IE. But in FF it is not working.

Any suggestion?

Thanks!

Balduz
  • 3,560
  • 19
  • 35
user755806
  • 6,565
  • 27
  • 106
  • 153

2 Answers2

2

Try:

$('select[id^=rowNum]').prop("disabled",true);
Felix
  • 37,892
  • 8
  • 43
  • 55
0
$('select[id^=rowNum]').attr('disabled', true);
Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107
uihelp
  • 198
  • 2
  • 7