I'm trying to remove a class from a HTML tag along with adding a new one and also doing some other magic.
Right now I just have a procedure style coding going on... which I know there's another way of doing it. Like creating a function within another function? I'm not sure what it's called and sometimes when trying to do it, it never worked so I went down procedure style type but I figured I post on here and maybe someone can explain to me on how jQuery works? Right now I have like
$(this).removeClass("theClass");
$(this).addClass("theClass");
$(this).slideDown();
I think I can do something like
$(this).removeClass("theClass", function(){
// other goodness?
});
Thanks everyone. Sorry if i don't make sense.