Skip to content Skip to sidebar Skip to footer

Toggleclass Not Working In Ajax

Hello Im new on stackoverflow, i have this GET method its work fine i mean i get a respone from server but i toggleClass is not working i dont know why ? this is my code: $('#form1

Solution 1:

you dont need a dot just remove it from your code change

$("#results .name").toggleClass('.active');

to

$("#results .name").toggleClass('active');

Post a Comment for "Toggleclass Not Working In Ajax"