CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Unable to use onClick with checkbox

 



ankitncr
New User

Jul 25, 2012, 12:03 AM

Post #1 of 1 (1221 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.
Attachments: good.pl (3.16 KB)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives