Hi, I have a jQuery script in a view. It has a bug as it's not working (textbox always shown). I think my syntax in the if statement is wrong.. here it is-
<script> jQuery(document).ready( function() { if( jQuery('#cnd').prop('checked', true) ); { jQuery('#nnd').show(); } else { jQuery('#nnd').hide(); } } ); </script> The element with id #cnd is a checkbox, and the element #nnd is a textbox. Putting a single line inside the doc ready function, eg jQuery('#nnd').show(); hides or shows the box just fine. Thanks for any help!!! -jl -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.