Avatar of debbieau1
Flag for United States of America

asked on 

checkbox onclick show

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()

Avatar of undefined
Last Comment

8/22/2022 - Mon