I am trying to remove a class from an HTML tag along with adding a new one, and also do another magic.
Right now, I'm just having procedure style coding ... that I know there is another way to do this. How to create a function inside another function? Iβm not sure what he called, and sometimes when he tried to do it, he never worked, so I went down to the type of procedure style, but I decided that I am staying here, and maybe someone can explain to me how does jQuery work? Right now i like
$(this).removeClass("theClass");
$(this).addClass("theClass");
$(this).slideDown();
I think I can do something like
$(this).removeClass("theClass", function(){
});
Thanks to everyone. Sorry if I don't make sense.
source
share