Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
hi,
I want a calender(date) picker infront of textbox in my form.
 
If you have any code then pls let know ASAP.
 
thanks
Posted 2-Jul-12 22:25pm
Comments
Mohibur Rashid at 3-Jul-12 3:26am
   
Try JQuery
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Rajeshkrathor at 4-Jul-12 4:11am
   
pls check that i want it on PHP
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

textbox
 
<input id="date_slot" name="date_slot" type="text" style="width:150px;" value="" />
 
<script type="text/javascript">
    var ng_config = {
        assests_dir: 'assets/'  // the path to the assets directory
    }
</script>
<script type="text/javascript" src="js/ng_all.js"></script>
<script type="text/javascript" src="components/calendar.js"></script>
<script type="text/javascript">
var my_cal;
ng.ready(function(){
        // creating the calendar
        my_cal = new ng.Calendar({
            input: 'date_slot', // the input field id
        //  start_date: 'year - 1', // the start date (default is today)
          start_date: 'year,month,day',    // the start date (default is today)
            display_date: new Date()    // the display date (default is start_date)
        });
 
    });
</script>
 
required
 
all.css
ng_all.js
calendar.js
(code of these files are too long, so i did not post).
i will mail if you required.
 
Thanks
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150326.1 | Last Updated 23 Jun 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100