Solution: Use the die() method to unbind all previously bound events on this element before binding the live() method, and then bind new events through the live() method.
//First release through the die() method , and then bind through live()
$("#selectAll").die().live("click",function(){
//Event running code
});
die() method introduction:
die([type], [fn])
Overview
New in jQuery 1.3. This method is exactly the opposite of live.
If no parameters are provided, all bound live events will be removed.
You can cancel custom events registered with live.
If the type parameter is provided, the corresponding live event will be removed.
If the second parameter function is also specified, only the specified event handling function will be removed.