SHARE
TWEET

Untitled

a guest Oct 21st, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!doctype html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1">
  6.   <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  7.   <link rel="stylesheet" href="/resources/demos/style.css">
  8.   <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  9.   <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  10.   <script src="http://codez.savonia.fi/jussi/api/json_data.php"></script>
  11.   <script type="text/javascript" src="js/ui/i18n/ui.datepicker-fi.js"></script>
  12.   <script>
  13.   $( function() {
  14.     $('#datepicker').datepicker( $.datepicker.regional[ "fi" ] );
  15.     $( "#datepicker" ).datepicker({
  16.        
  17.     dateFormat: "yy-mm-dd",
  18.     minDate: new Date('1996-1-1'),
  19.     maxDate: new Date('2015-12-31')
  20.    
  21.  });
  22.   });
  23.   </script>
  24.   <script>
  25.     $( function() {
  26.         $("#Kaupungit").autocomplete({
  27.             source: function(request, response){
  28.                 $.ajax({
  29.                     url: "http://codez.savonia.fi/jussi/api/json_data.php",
  30.                     dataType: "JSON",
  31.                     data: {
  32.                         term: request.term
  33.                     },
  34.                     success:function(data){
  35.                         response(data);
  36.                     }
  37.  
  38.  
  39.                 })
  40.             }
  41.         });
  42.  
  43.        
  44.     });
  45.   </script>
  46. </head>
  47. <body>
  48.  
  49. <p>Date: <input type="text" id="datepicker"   placeholder ="Pvm:ää ei ole valittu" placeholder style="color: tomato"></p>
  50. <div class="ui-widget">
  51.   <label for Kaupungit>Syntymäpaikka: </label>
  52.   <input id="Kaupungit">
  53. </div>
  54.  
  55. </body>
  56. </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