hi guys, I'm wondering why this simple switch isn't working.
the html of the checkbox is:
<input type="checkbox" id="use_billing" value="1" />
While the jquery inside a document(ready) is:
$j('#use_billing').change(function(){
switch ($j(this).val())
{
case '1':
$j('#gift_to').slideUp();
break;
default:
$j('#gift_to').slideDown();
break;
}
});
If I check the box, my div id'd #gift_to does slideUp. Yet nothing happens on the uncheck... what am I missing?