This is not working
$(".gradeA, .gradeU").find(":checkbox").click(function() {
if (this.checked === false) { return; }
if (this.hasClass("toggler")) { return; }
The last line is failing but i need to check to see if its this checkbox
<input type="checkbox" name="myCB" value="A" class="toggler" />Couldn't find the Venue<br />
hasClass()is a member method of thejQueryobject. so you need to enclose thethisin the$()function, otherwise you are trying to call thehasClass()method on the DOM object, which doesn’t havehasClass()as a member function.Passing
thisas a parameter to thejQueryobject (often shortened to$) will return ajQueryobject which does havehasClass()as a member method, and then everyone is happy and pixies can dance around the campfire again.