For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > November 2004 > RE: [SMARTY] html_checkboxes and own JS function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [SMARTY] html_checkboxes and own JS function
Geoffrey Hoffman

2004-11-01, 3:59 pm

You can put your javascript inside {literal} {/literal} tags to make it so
that your <script type="text/javascript"> doesn't cause a template compile
error.
That help?


> I would like to call own JS function when checkbox is checked. For
> example:
>
> <label><input type="checkbox" name="producers[]" onClick="Foo();"
> value="58" />Microsoft</label>
>
> Is there some way how to solve this? Thank you.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com