I'm using cakephp to build a survey and want to use javascript (specifically jquery as it's used elsewhere) to modify some hidden inputs.
To be clear, commenting out the offending lines of jquery allows cake to do it's thing properly. But when the values are modified with jquery, this happens:
To take just one of the hidden inputs in question, here's the relevant code:
<?php echo $form->hidden('bigLayout', array('value'=>'1')); ?>
<script> $('#ResponseBigLayout').val('0');</script>
Additionally, I can use Firebug to replicate the error using just that line of javascript. Using Tamper Data doesn't reveal anything obvious. Lastly, changing the default value in the php doesn't cause the error.
Anyone know what might be going on here?