Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Rebind events

Is is possible to rebind events?

For example if I assign on document load:-
$(".testButtons").click(function () { alert("hi"); });

Open in new window


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
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial