Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED jQuery datepicker
#3
(2014-11-29, 21:32:28)Kapelius Wrote: Hello, i'm tested and fixed your code. And it's works.
Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(document).ready(function() {
    $("#datepicker").datepicker();
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>

Thank you a lot Exclamation I will try out this now and wil give you a note.

Update:
It is not working. I get (with chrome) this error:

Code:
Uncaught TypeError:
undefined is not a function                        (index):31
(anonymous function)                                (index):31
fire                                                             jquery-1.10.2.js:3048
self.fireWith                                               jquery-1.10.2.js:3160
jQuery.extend.ready                                  jquery-1.10.2.js:433
completed                                                 jquery-1.10.2.js:104

This is the head.inc.php from Iridium:
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File:             head.inc.php
* @Package:        GetSimple
* @Action:        Iridium theme for GetSimple CMS
*
*****************************************************/
?>
    <!-- Site Title -->
    <title><?php get_page_clean_title(); ?> &mdash; <?php get_site_name(); ?></title>    
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <!--[if lte IE 8]><script src="<?php get_theme_url(); ?>js/html5shiv.js"></script><![endif]-->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script src="<?php get_theme_url(); ?>/js/skel.min.js"></script>
        <script src="<?php get_theme_url(); ?>/js/skel-panels.min.js"></script>
        
        
        <script> var prefixUrl = '<?php get_theme_url(); ?>'; </script>
        <script src="<?php get_theme_url(); ?>/js/init.js"></script>
        <noscript>
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/skel-noscript.css" />
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/style.css" />
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/style-desktop.css" />
            
            </noscript>
        <!--[if lte IE 8]><link rel="stylesheet" href="<?php get_theme_url(); ?>css/ie/v8.css" /><![endif]-->
        <!--[if lte IE 9]><link rel="stylesheet" href="<?php get_theme_url(); ?>css/ie/v9.css" /><![endif]-->
    
    <link href='http://fonts.googleapis.com/css?family=Vollkorn|Arvo|Bitter:400,700,400' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
    <script>
    $(document).ready(function() {
    $("#datepicker").datepicker();
    });
    </script>
    <?php get_header(); ?>
Reply


Messages In This Thread
jQuery datepicker - by fugo - 2014-11-28, 03:42:56
RE: jQuery datepicker - by Kapelius - 2014-11-29, 21:32:28
RE: jQuery datepicker - by fugo - 2014-11-29, 23:33:16
RE: jQuery datepicker - by Kapelius - 2014-11-30, 01:03:22
RE: jQuery datepicker - by fugo - 2014-11-30, 01:31:34
RE: jQuery datepicker - by Kapelius - 2014-11-30, 01:45:54
RE: jQuery datepicker - by fugo - 2014-11-30, 02:07:05
RE: jQuery datepicker - by shawn_a - 2014-11-30, 02:58:09
RE: jQuery datepicker - by fugo - 2014-11-30, 06:09:29
RE: jQuery datepicker - by shawn_a - 2014-11-30, 07:19:42



Users browsing this thread: 1 Guest(s)