daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest May 7th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head>
  3.         <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"> -->
  4.          <script language="JavaScript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js">
  5.  
  6.         //Load jQuery library using plain JavaScript
  7.         // (function(){
  8.         //   var newscript = document.createElement('script');
  9.         //      newscript.type = 'text/javascript';
  10.         //      newscript.async = true;
  11.         //      newscript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';
  12.         //   (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
  13.         // })();
  14.  
  15.         jQuery(document).ready(function($) {
  16.             alert('cacat');
  17.            
  18.             function registerClick() {
  19.                 console.log("register");
  20.                 $("#form").text("pisat");
  21.             }
  22.  
  23.             $(document).ready(function() {
  24.                 console.log("ready");
  25.                 $("#form").click(function() {
  26.                     registerClick();
  27.                 })
  28.             });
  29.         }
  30.         </script>
  31.     </head>
  32.     <body>
  33.         <div id="cregistered">1</div>
  34.  
  35.         <button type="button" id="register">Register</button>
  36.  
  37.         <div id="form" style="display:none">
  38.         <form>
  39.           Username:<br>
  40.           <input type="text" name="username"><br>
  41.           Password:<br>
  42.           <input type="text" name="password"><br>
  43.           Country:<br>
  44.           <input type="text" name="country">
  45.         </form>
  46.         </div>
  47.  
  48.  
  49.         <button type="button" id="loginButton">Login </button>
  50.     </body>
  51. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top