AudithSoftworks / Uniform

A jQuery plugin to make your form controls look how you want them to. Now with HTML-5 attributes!
http://opensource.imanov.net/uniform/
MIT License
2.2k stars 336 forks source link

Default class disabled. #414

Closed zendre4 closed 8 years ago

zendre4 commented 9 years ago

Hello, I found an error when use jQuery(element).addClass("disabled") in Firefox, disabled is a protected name and it was'nt apply.

Good day

Julien Stalder

fidian commented 9 years ago

Do you have a plunker or fiddle that illustrates this problem?

Also, you can use the options to change the name of the disabled class to anything you like, such as "disabledFormElement".

$(element).uniform({
    disabledClass:  "disabledFormElement"
});
shehi commented 8 years ago

Class named disabled works fine in Firefox Current and Chrome Current: https://jsfiddle.net/Shehi/zmp8wqu0/1/