Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Can I add an event to an object before it is created?
- <a class="editLink" href="/location/Edit?city=05">Edit</a>
- $(".editLink").button();
- $(".editLink").click(function () {
- alert('edit link');
- return false;
- });
- $(".editLink").button();
- $(document).on('click', '.editLink', function() {
- alert('edit link');
- return false;
- });
- $('body').on('click', '.editLink', function() {
- alert('edit link');
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment