Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
- <link rel="stylesheet" href="/resources/demos/style.css">
- <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <script src="http://codez.savonia.fi/jussi/api/json_data.php"></script>
- <script type="text/javascript" src="js/ui/i18n/ui.datepicker-fi.js"></script>
- <script>
- $( function() {
- $('#datepicker').datepicker( $.datepicker.regional[ "fi" ] );
- $( "#datepicker" ).datepicker({
- dateFormat: "yy-mm-dd",
- minDate: new Date('1996-1-1'),
- maxDate: new Date('2015-12-31')
- });
- });
- </script>
- <script>
- $( function() {
- $("#Kaupungit").autocomplete({
- source: function(request, response){
- $.ajax({
- url: "http://codez.savonia.fi/jussi/api/json_data.php",
- dataType: "JSON",
- data: {
- term: request.term
- },
- success:function(data){
- response(data);
- }
- })
- }
- });
- });
- </script>
- </head>
- <body>
- <p>Date: <input type="text" id="datepicker" placeholder ="Pvm:ää ei ole valittu" placeholder style="color: tomato"></p>
- <div class="ui-widget">
- <label for Kaupungit>Syntymäpaikka: </label>
- <input id="Kaupungit">
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement