Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var i = 1; i <= 7; i++) {
- $("#button" + i).click(function() {
- $("#result").html("Button " + i + " was clicked.");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement