how to get class name from jquery -


What is unknown to jquery when a class name is anyway to get it

 < Code> & lt; Input type = "checkbox" id = "if you tick me" class = "tickme" onClick = "myfunction (this)" & gt; & Lt; Input type = "checkbox" id = "you also tick me" class = "tickme" & gt; Prop myfunction (x) {$ ("." The unknown class name goes here '') Prop ('check', 'true')}  

So when the first time is checked, the second one is two, but you do not know any of the class names but The names are the same and you have to use a class and no and the id

you can do something like

  click on the handle of the function (x ) {$ ("." "$ (X) .attr (" class ")) .Press ('checked' is true)}  

Name will be


Comments