tonelm54
asked on
Rebind events
Is is possible to rebind events?
For example if I assign on document load:-
And then I dynamically add a button with the class '.testButtons' then the event isnt attached, but I want it to.
For example jsFiddle
Any ideas how I can rebind?
Thank you
For example if I assign on document load:-
$(".testButtons").click(function () { alert("hi"); });
And then I dynamically add a button with the class '.testButtons' then the event isnt attached, but I want it to.
For example jsFiddle
Any ideas how I can rebind?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.