Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
Mohibur Rashid 3-Jul-12 3:26am    
Try JQuery

 
Share this answer
 
Comments
[no name] 4-Jul-12 4:11am    
pls check that i want it on PHP
textbox

<input id="date_slot" name="date_slot" type="text" style="width:150px;" value="" />

XML
<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
 
Share this answer
 
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900