Posts from ‘February, 2008’

jQuery – watch a checkbox field

This is a simple function I wrote that will monitor a <checkbox> field on a form. If the <checkbox> is ticked then it will show a specified <div> and if the <checkbox> is un-ticked then it will hide the specified <div>.
View the working example
Initially I thought that I might be able to use the .toggle() [...]