ankitncr has asked for the wisdom of the Perl Monks concerning the following question:
To begin with, I am just trying to display an alert box when a check box is selected. Here is the javascript code that I used
$JSCRIPT=<<END; <script language="text/javascript"> function selectAll() { alert('Hello'); } </script> END
Here is the checkbox
$cgi->checkbox ( -name=>'All', -onClick=>"selectAll()", ),
But nothing happens when I select the All checkbox. Your help will be really appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to use onClick with checkbox
by Corion (Patriarch) on Jul 25, 2012 at 07:26 UTC | |
by Anonymous Monk on Jul 25, 2012 at 07:38 UTC | |
by Corion (Patriarch) on Jul 25, 2012 at 07:49 UTC | |
by Anonymous Monk on Jul 25, 2012 at 07:51 UTC | |
|
Re: Unable to use onClick with checkbox
by Anonymous Monk on Jul 25, 2012 at 07:34 UTC |