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?
转载于:https://stackoverflow.com/questions/426258/setting-checked-for-a-checkbox-with-jquery