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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -