remove class in jquery not functioning -
my code..
if($("#edbuttonhtml").is(".active")) { $("#edbuttonhtml").removeclass("active"); $("#edbuttonpreview").addclass("active"); }
i need remove active class element #edbuttonhtml , add #edbuttonpreview unfortunately not functionating...help me
change if condition [assuming active class name
if($("#edbuttonhtml").hasclass("active")) { $("#edbuttonhtml").removeclass("active"); $("#edbuttonpreview").addclass("active"); }
Comments
Post a Comment