Is there anyway to get the name of a class when it is unknown to jquery
<input type="checkbox" id="if you tick me" class="tickme" onClick="myfunction(this)">
<input type="checkbox" id="you tick me also" class="tickme">
function myfunction(x) {
$('."unknown class name goes here"').prop('checked', 'true')
}
therefore when the first one is checked the second one is two but you dont know either of the class names but the class names are the same and you have to use a class and not and id.
$(':checkbox')? But just out of curiosity, why don't you know the classname?