Advertisement
freddy0512

jquery

Aug 15th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.27 KB | None | 0 0
  1.  
  2.  
  3. $(document).ready(function() {
  4.  //if all href click
  5.       $("a[href]").click(function() {
  6.         console.log(this)
  7. //put the controller to div with id change-content
  8.         $("#change-content").load($(this).attr("href"))
  9.         return false
  10.         });
  11.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement