jQuery Click event

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. $(".button_map").click(function() {
  2. alert('button clicked!');
  3. return false; // this line stops the browser from completing any default behaviour such as scrolling the page
  4. });

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.