A jQuery Plugin designed to easily show elements based on values of other elements
$('[visibly]').Visibly();
clearOnHide: false, //Clear the data from the elements on hide
regularExpression: false, //This determines if regular expression is to be used for the test
attr: 'visibly', //Data attribute to use for the visibly data
vdelim: ',', //Delimeter used to split the values a control can hold
edelim: ':', //Delimeter between the field ID and the values
fdelim: ';' //Delimeter between the fields
rdelim: '%' //Delimeter between the rules
<div visibly="field1:a,b;field2:1"></div>
The above rule will make the relevant element visible is the value of field1 is either 'a' or 'b' and field2 has value of '1'
Full documentation can be found at: http://www.danielrivers.com/visibly