troubleshooting Question

checkbox onclick show

Avatar of debbieau1
debbieau1Flag for United States of America asked on
JavaScript
6 Comments2 Solutions326 ViewsLast Modified:
I have a checkbox

<input name="mycheck" type="checkbox" value="1" id="mycheck" />

I want to call a hideinfo function  (if it is not selected)   or showinfo function (if checkbox value is selected).  I need to call a function, not show a div as I am using this with canvas.

So it should be if checkbox is selected (has 1) then run showinfo()
 if checkbox is not selected  then run hideinfo()
ASKER CERTIFIED SOLUTION
leakim971
Multitechnician
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros