Setting "checked" for a checkbox with jQuery
Asked 07 September, 2021
Viewed 1.8K times
  • 61
Votes

I'd like to do something like this to tick a checkbox using jQuery:

$(".myCheckBox").checked(true);

or

$(".myCheckBox").selected(true);

Does such a thing exist?

30 Answer