Hi,
I'm still stuck here.. I tried a few other things. I just want to show/hide #nnd based on whether or not #cnd is checked. This example is in the manual, but I still cannot get it to work..
Here's the form-
fields = []
fields.append( Field( 'cnd', 'boolean', default=True) )
fields.append( Field( 'nnd') )
form = SQLFORM.factory(*fields)
And the view-
<script>
jQuery(document).ready(function()
{
jQuery('#no_table_nnd__row').hide();
jQuery('#no_table_cnd').change(function(){
if( jQuery('#no_table_cnd').attr('checked') );
jQuery('#no_table_nnd__row').show();
else
jQuery('#no_table_nnd__row').hide();});
});
</script>
But still the input box stays visible regardless of the status of the checkbox.. :( Any help would be greatly appreciated.
Thanks,