Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help on javascript

    I have these lines of codes, but I can not get the calendar shown in the
    browser. can anyone help me on this. Thanks!

    <html>
    <head>
    $(document).ready(function()
    {

    $('#calendar').datepicker({
    dateFormat: 'yy-mm-dd',
    changeYear: false,
    changeMonth: false,
    minDate: '-1m',
    maxDate: '+2m',
    });
    </head>

    <body>
    <div id='calendar'>
    </div>

    </body>
    </html>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Don't you need to link the related javascript library file to your page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Banned
    Join Date
    Jul 2010
    Posts
    66
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hi
    1. Download jQuery, either version 1.0.4 or 1.1.2
    2. Download jCalendar — source or compressed or svn checkout
    3. Download optional jCalander CSS
    4. Add 3 form selects for day, month, and year with classes jcalendar-select-day, jcalendar-select-month, jcalendar-select-year
    5. Wrap the 3 selects in <div class="jcalendar-selects">
    6. Attach jcalendar. Example:

    $(document).ready(function() {
    $('fieldset.jcalendar').jcalendar();
    });

    7. Enjoy better usability :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •