Select value all input checkbox selectors and checked jquery

In the following web example we have a selector with 3 color options and 3 checkboxes with different car models of which one is marked:

- We store in a variable "colorValue" the value of the selected color.
- We select the class "car" and of each one we create a function that shows us by console its value.
- We select all the "input name=car" and of each one we create a function that shows us by console its value.
- We select all the "input name=car" and from each one we create a function that shows us its value in case it is checked.

Comments

PHP Captcha


Interesting Articles