Saturday 28 September 2013

Increase Div height when checkmark is checked

Increase Div height when checkmark is checked

I currently have a fadein/out of a hidden div when a checkmark is checked.
I would like to also increase the appropriate div height as well and then
remove the same height after the check mark is unchecked. This some
snippets of my current code:
<script type="text/javascript">
$('.checkTax').change(function() {
if ($(this).attr("checked")) {
$('.prorateTax').fadeIn();
return;
}
$('.prorateTax').fadeOut();
});
</script>
The div whos height needs to be adjusted is: .article.prorate . I've tried
a few suggestions online and so far nothing is working. If other
information is needed to provide a adequate response please let me know.

No comments:

Post a Comment