skip to Main Content

jQuery click triggers click event handler 3 times

I tried to implement a simple website which have 5 checkboxes. If user clicks "All" checkbox then all the other checkbox will be checked or unchecked depends on the value of the "All" checkbox. $(document).ready(function() { $("#all").click(function(event) { console.log("all"); $("input[name=vehicle]").each(function()…

VIEW QUESTION
Back To Top
Search