
ankitncr
New User
Jul 25, 2012, 12:03 AM
Post #1 of 1
(2188 views)
|
Unable to use onClick with checkbox
|
Can't Post
|
|
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. I have attached the entire perl script. Your help will be really appreciated.
|