Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 19th, 2013  |  syntax: None  |  size: 0.87 KB  |  views: 37  |  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. $('#login-form').submit(function(e) {
  2.     $.fancybox({
  3.         content: '<h2>Hello Fancybox</h2>',
  4.         modal: true
  5.     });
  6.     return false;
  7. });
  8.        
  9. <div style="display:none" id="access-policy">
  10. blah blah blah
  11. </div>
  12.        
  13. $('#login-form').submit(function(e) {
  14.     $.fancybox({
  15.         href: '#access-policy',
  16.         modal: true
  17.     });
  18.     return false;
  19. });
  20.        
  21. <div style="display:none">
  22.     <div id="access-policy">
  23.         blah blah blah
  24.     </div>
  25. </div>
  26.        
  27. $('#login-form').submit(function(e) {
  28.     $.fancybox({
  29.         content: $('#access-policy').show(),
  30.         modal: true
  31.     });
  32.     return false;
  33. });
  34.        
  35. $('#login-form').submit(function(e) {
  36.     $.fancybox({
  37.         content: $('#access-policy'),
  38.         modal: true
  39.     });
  40.     return false;
  41. });
  42.        
  43. <div style="display:none"><div id="access-policy">
  44. blah blah blah
  45. </div></div>
  46.        
  47. content: $('#access-policy').html(),
clone this paste RAW Paste Data