javascript - How to make function work after append -
for example i'm using append, , example i'm appendig button in div, , have function $('button_id').click(... etc work affter append div, how can that.i mean no errors, function not starting, it's because append , want use function how that, tryed delegate, same thing.i tryed function in button tag , onmouseover , function thing, nothing gives me function not found.what solution ?
i have 2 events, 1 event click event appends button, other event click event if button appended clicked, second event not working ?
try using :
$(elem).live(...)
it bind event , in future.
Comments
Post a Comment