jQuery .disable() not working

First code doesn't work:

  var regionPickerOpenButtons = $(".regionPickerOpenButton");

  regionPickerOpenButtons.disable();

This code does work:

  $(".regionPickerOpenButton").attr('disabled', 'disabled');

Why doesn't .disable(); above ??

jonatecAsked:
Who is Participating?
 
cmalakarCommented:
Probably you need this plugin.

http://plugins.jquery.com/project/disable
0
 
cmalakarCommented:
>>regionPickerOpenButtons.disable();

is this api  present in jquery ?
0
 
jonatecAuthor Commented:
Perfect thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.