This is what I see in the shipping area where the fields are hidden until you check the box:
Code: Select all
<table>
<tr>
<td width="100%">
<?php if ($shipping_indicator) { ?>
<input style="vertical-align: middle;" type="checkbox" value="1" checked="checked" onchange="(this.checked) ? $('#shippingAddress').slideDown('fast') : $('#shippingAddress').slideUp('fast');" name="shipping_indicator" id="shipping_indicator" style="margin: 15px 5px 20px 5px;" /><label for="shipping_indicator"><span style="vertical-align: middle;"><?php echo $text_indicator; ?></span></label>
<?php } else { ?>
<input style="vertical-align: middle;" type="checkbox" value="1" onclick="(this.checked) ? $('#shippingAddress').slideDown('fast') : $('#shippingAddress').slideUp('fast');" name="shipping_indicator" id="shipping_indicator" style="margin: 15px 5px 20px 5px;" /><label for="shipping_indicator"><?php echo $text_indicator; ?></label>
<?php } ?>
</td>
</tr>
</table>
<table class="register-form" id="shippingAddress" style="<?php if (!$shipping_indicator) { ?>display:none<?php } ?>">
Code: Select all
<table>
<tr>
<td width="100%">
<?php if ($register_indicator) { ?>
<input style="vertical-align: middle;" type="checkbox" value="1" checked="checked" onchange="(this.checked) ? $('#registerAccount').slideDown('fast') : $('#registerAccount').slideUp('fast');" name="register_indicator" id="register_indicator" style="margin: 15px 5px 20px 5px;" /><label for="register_indicator"><span style="vertical-align: middle;"><?php echo $text_register_indicator; ?></span></label>
<?php } else { ?>
<input style="vertical-align: middle;" type="checkbox" value="1" onclick="(this.checked) ? $('#registerAccount').slideDown('fast') : $('#registerAccount').slideUp('fast');" name="register_indicator" id="register_indicator" style="margin: 15px 5px 20px 5px;" /><label for="register_indicator"><?php echo $text_register_indicator; ?></label>
<?php } ?>
</td>
</tr>
</table>
<table class="register-form" id="registerAccount" style="<?php if (!$register_indicator) { ?>display:none<?php } ?>">
Thanks.