Click here to Skip to main content
Sign Up to vote bad
good
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 - 21:25

Comments
Mohibur Rashid - 3 Jul '12 - 3:26
Try JQuery

3 solutions

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  
  Permalink  
Comments
Rajeshkrathor - 4 Jul '12 - 4:11
pls check that i want it on PHP
refer to these articles.
if you want to use simple ASP.NET CALENDAR CONTROL
Show Calendar Control in ASP.NET GridView Control using Javascript
if you want to use AJAX Calendar Extender control
Ajax Calendar Control in ASP.NET
  Permalink  
Comments
Rajeshkrathor - 4 Jul '12 - 4:11
pls check that i want it on PHP

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 388
1 OriginalGriff 291
2 Mayur_Panchal 153
3 Mohammed Hameed 145
4 Dave Kreskowiak 125
0 Sergey Alexandrovich Kryukov 8,146
1 OriginalGriff 6,236
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 30 Aug 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid