jquery enable disable plugin
This plugin can disable or enable easily an input, textarea or another form element by using a radio button, checkbox or a drop-down list,… ok i know, it doesn’t sound like something amazing … is just a simple and flexible plugin for complex forms.
Homepage
Download
Demos
Documentation
jquery plugin page
greetings
(04-07-2010) update: drop-down list support was added by Ajay Sawant thank you!


12:19 pm
April 7th, 2010
Hi,
Thanks for this cool plugin, I have extended this to support the dropdown list as well and you can download the updated version from http://prosares.co.cc/jquery.enable.disable.plugin.V2.zip
We can use it as shown below, where enablerVal is array of the possible values for which I would like to enable specified control
$(‘#theOptions1′).EnableDisable({
enabler: ‘#theOptions2′,
enablerVal: ‘[1,4,6]‘
});
Hope this will add some more value to this plugin.
Thanks
Ajay Sawant
12:38 pm
April 7th, 2010
Hi! Ajay
great! i’m going to update the documentation and all the stuff.
i’ll put your example on the demo page
thanks a lot.
2:23 pm
April 7th, 2010
done!
1:45 am
April 8th, 2010
Thanks :)
4:26 am
April 13th, 2010
Que tal viejo, estoy creando un formulario algo complejo para un proyecto y varios de tus plugins me han servido mucho.
Pero tengo un pequeño bug en este “Disabler”; cuando se necesita habilitar un “text input” a traves de uno de los checkbox, el cual este a la vez esta en array con otros checkbox, hasta ahi todo bien, me habilita el input al seleccionar ese checkbox en particular, pero cuando le hago checked a sus checkbox compañeros que estan en array me deshabilita el input a pesar de estar checked.
Te mando el link de mi formulario para que lo puedas comprobar tu mismo, se encuentra en el paso 2 del formulario, en el checkbox/input llamado “Otro / Especifcar”:
http://l4dla.com/cic/factibilidad_ap.html
Saludos
1:25 pm
April 13th, 2010
gracias por el feedback coke :-)
más tarde publicaré la nueva versión solucionando el problema que tuviste que conversamos por correo, saludos
12:06 pm
April 14th, 2010
hecho ;-)
9:16 pm
April 14th, 2010
Vale te pasaste, ahora funciona todo Ok ;)
Saludos
9:54 am
June 7th, 2010
Hi,
I didn’t see where i could drop this enable disable related question so maybe you will know.
I want to use the dropdown feature but than with radio buttons but i can’t get it to work
$(‘#produktA input[id^=produktA_option]:radio, #produktA input[id^=produktA_payment]:radio’).EnableDisable({
enabler: ‘#checkbox_product’,
enablerVal: ['produktA']
});
$(‘#produktB input[id^=produktB_option]:radio, #produktBinput[id^=produktB_payment]:radio’).EnableDisable({
enabler: ‘#checkbox_product’,
enablerVal: ['produktB']
});
$(‘#productC input[id^=produktC_option]:radio, #produktC input[id^=produktC_payment]:radio’).EnableDisable({
enabler: ‘#checkbox_product’,
enablerVal: ['produktC']
});
It’s a form where i have 3 sub fieldset which are disable on default, but when a particular radio button is checked the corresponding fieldset is enabled.
Hope you can help,
Regards
7:31 pm
June 7th, 2010
i didn’t understand exactly what you need, but if you want to have some radios with some value enabling other fields it should be something like this.
$(‘#field_to_be_enabled_or_disabled’).EnableDisable({
enabler: ‘#radio_button[value=some_value], #radio_button[value=other_value]‘
});
that should work, i think :-)
regards