Using jquery to get all checked checkboxes with a certain class name -


I know that I can get all the checkboxes on the page on this checkbox:

  $ ('Input [type = checkbox]'). Each (function () {var sThisVal = (this.checked? $ (This) .val (): "");});   

But now I'm using it on a page that has some other checkboxes I do not want to include. How can I change the checked-up check box only to the above code on which there is a certain category on them?

$ ('theClass: checkbox: check') To class theClass .

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -