Chrissirhc
Programmer
Hello,
How do I get a response from a checkbox. For example I have a checkbox and I want it to return a value to a javascript method. What I have done is this ;
<form onclick = "setDisplayTime()">
<p class="left">
Show date and time in status bar:
<input type = "checkbox" checked = "checked" name ="set display" value = "" />
</form>
What this does is call a method whenever I click on an 'element of the form'. How do I call the method when the checkbox is checked or unchecked by the user passing a value true of false to the method?
Thanks in advance,
Chris
How do I get a response from a checkbox. For example I have a checkbox and I want it to return a value to a javascript method. What I have done is this ;
<form onclick = "setDisplayTime()">
<p class="left">
Show date and time in status bar:
<input type = "checkbox" checked = "checked" name ="set display" value = "" />
</form>
What this does is call a method whenever I click on an 'element of the form'. How do I call the method when the checkbox is checked or unchecked by the user passing a value true of false to the method?
Thanks in advance,
Chris