Checkbox with Accordion Field Expansion
Hey Guys!
I'm working on setting up a form that expands field boxes when a user selects a checkbox. Everything works properly, the only problem I'm having is the checkbox is never "checked".
Here is my example page:
http://www.communitymutual.com/test.php Click on the liability checkbox and all of the additional fields are expanded. Is there a way for the checkbox to stay checked once it has been clicked?
Here is the script I'm using:
- <script type="text/javascript">
$(document).ready(function(){
$('.checkboxList input').bind('click', function(){
$("#addstructure").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});
</script>
Thanks so much!
~ SarahB ~