Then we are attaching to it an on change event and inside it we are using the anonymous function syntax for the second time. All what we will have to do is give an id to the form , I gave it an id of myform, then use jQuery to grab and submit the form. You can access a Checkbox object by indexing the elements array (by number or name) of the corresponding form or by using getElementById(). To find out more about accessing properties of the checkbox inside the function assigned onclick, see the Event Handler Properties Example. The following select the button and attach a click event … A label, specified with the label attribute, may be added beside the check box. https://codepen.io/prasanthmj/pen/vZZzaa/. processing this form will handle correctly, Sets or returns the keyboard key to access the checkbox, Sets or returns the alignment of the checkbox according to If you are not familiar with the ‘this’ keyword , here in this example it refers to the target that fired that event which is here the checkbox we want to grab. Each code sample must be … W celu opisania tego elementu pomocny nam będzie znany nam już element