This is my html Code:
<input type="checkbox" name="test" id="test" />
Here i want to check if the checkbox test is checked or not when clicking on that checkbox.
That means there have function to call when clicked the checkbox and in that function check the test is checked or not using javacsript.
How can i do this?
<input type="checkbox" name="test" id="test" onClick="check(this)" />In your script :
function check(element) {alert(element.checked); }
Hope this may help you, if not let me know.