Remove class function with Jquery
  • This function will replace an existing class to a new one

    function replaceClass(rem,add,elt)
        {
            $(elt).removeClass(rem).addClass(add);
        }
    Usage
    function test()
           {
               replaceClass('t''africa''#africa');
           }

  • 2 Comments sorted by
  • Sorry you need  to add Jquery to your page in order for this function to work.
  • thanks jaguar777 keep it up (Y)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Top Posters Weekly

Optimum Creative