Hello,
  I have dynamically adding and removing element function within live
() event and used addClass() and removeClass() to update the classes
of the remaining elements. It works all fine and shows the updated
classes when checked in firebug. But when alerting the class it shows
both new and the old class.Can anyone help through this problem.

  $('a.remove').live("mouseover", function(){
           $('a.remove').each(function(i) {
            remove(this, i);
            });
 });


function remove(obj, i) {
//remove the clicked element and update the classes of the remaining
elements

.............................remoceClass().addClass(newclass)

}

Reply via email to