How to invoke on check event of a checkbox[]

Let’s learn how to invoke a checkbox[]’s checked event. Our checkbox:

our onchange event call showhidecheckbox() javascript function. This function is used to detect the checkbox status and show or hide a div named “sendto”.

Now, you can hide or show your sendto div when your checkbox is checked or unchecked.