Created
January 28, 2013 11:03
-
-
Save calvinmetcalf/4654646 to your computer and use it in GitHub Desktop.
events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//instead of structuring them like this | |
$("#someID").on("click", function(e){ | |
e.preventDefault(); | |
doStuff(); | |
}); | |
//I had to hang it all of the main div | |
$("#body").on("click", "#someID", function(e){ | |
e.preventDefault(); | |
doStuff(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment