सभी जवाब यहाँ की कोशिश की और कुछ भी नहीं मेरे लिए काम किया।
<input type="submit" value="Save" id="saveButton" disabled="disabled" />
तब मैं globaly फोन:
$("button, input:submit, input:button").button();
उसके बाद बटन aria-विकलांग = सच का श्रेय जाता है
मुद्दा यह है कि मैं एचटीएमएल है।
न तो सक्षम हो जाएगा निम्न में से प्रस्तुत:
$("#saveButton").attr('disabled',false);
$("#saveButton").removeAttr('disabled');
$("#saveButton").prop('disabled',false);
$("#saveButton").attr('aria-disabled',false);
$("#saveButton").removeClass('ui-state-disabled');
केवल काम कर रहे इस मामले में समाधान है:
$("#saveButton").button("enable");
jQuery यूआई डॉक्स: Button Widget - enable()
अक्षम करने के लिए बटन फिर से:
$("#saveButton").button("disable");
jQuery यूआई डॉक्स: Button Widget - disable()
कोई विशेषता तथाकथित 'सक्षम' नहीं है। –