I have to generate some buttons dynamically based on some service response, and also have to attach some handlers on click of those buttons. So I am using jQuery.live()
for it, it works well for the first time.
But when i removes all buttons using jQuery("<some container div>").empty()
and creates again those buttons, now on click of button "handler calls twice", if I repeat the same it fires thrice and and same.
Can you guys help me, thanx in advance.