dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Duplicate Script on same page

  1. #1
    Join Date
    Sep 2011
    Posts
    2

    Duplicate Script on same page

    Hello

    I have two input text fields, Start Date and End Date on the same page.
    I heed to run the same script to enable calendar pop up for both fields.
    Script works ok for first field

    Script Below

    <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
    <script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
    <script type="text/javascript">
    window.onload = function(){
    new JsDatePick({
    useMode:2,
    target:"FormsEditField5",
    dateFormat:"%d-%M-%Y"
    /*selectedDate:{ This is an example of what the full configuration offers.
    day:5, For full documentation about these settings please see the full version of the code.
    month:9,
    year:2006
    },
    yearsRange:[1978,2020],
    limitToToday:false,
    cellColorScheme:"beige",
    dateFormat:"%m-%d-%Y",
    imgPath:"img/",
    weekStartDay:1*/
    });
    };
    </script>


    Thanks

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,270
    See the JQuery Datepicker date Range page...

  3. #3
    Join Date
    Sep 2011
    Posts
    2
    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles