Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 4th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery overlay click event trigger navigation click
  2. $("#ol").click(function(e) {
  3.       e.preventDefault();
  4.       $('a.prev').click();
  5. });
  6. $("#or").click(function(e) {
  7.       e.preventDefault();
  8.       $('a.next').click();
  9. });
  10.        
  11. $("#ol").click(function(e) {
  12.       e.preventDefault();
  13.       $('a.prev').click();
  14.       return false; //added
  15. });
  16. $("#or").click(function(e) {
  17.       e.preventDefault();
  18.       $('a.next').click();
  19.       return false; //added
  20. });