how can i disable live(‘click’, function…) method and then after ajax call (depending on response), then enable it again?
i read some place that “event.preventDefault();” dont work on live method and even if it works, how can i enable it again? i cant use die(‘click’, function…) method, because it will disable all the links and not just single link, which i clicked on.
lets say you have this code
what you would like to do is single out elements when they are clicked. Handler functions in jquery always have their context set to the element they are processing at the time (i.e. this == anchor element you clicked on). So we need to use this, and call die on it individually like so.
I hope this is close to what you were looking for.