Selective enable/disable form elements with jQuery

Last Update
27 January 2011
Regular License
$3
Extended License
$15
Sales
63

jQuery Foggle is a plugin that lets you interact with various form elements based on user-input. It lets you choose which elements to enable (or disable) while the user fills out the form.

While you can achieve the same functionality by writing some amount of JavaScript for each such field, this plug-in makes it a breeze. It takes only two parameters and does the same for you in just one line of code.

v2 changelog

Checkbox issue fixed. Works with select elements

Check out a demo at http://lab.abhisekdutta.in/foggle/

Please note that it’s a jQuery plugin and it adds functionality only on the form elements. The demo app is for showing how it works. It doesn’t handle any server side interactions (although, it can be customised to handle them).