1. To use calendar in our page, we should include one JS file in our project on the same path of our page.
2. Paste the following line in <head>
<SCRIPT LANGUAGE="JavaScript" SRC="CalendarPopup.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" ID="js1">
var cal1 = new CalendarPopup();
</SCRIPT>
3. Paste the following two lines where you want to show calendar and inside <body>
<INPUT TYPE="text" NAME="date1" VALUE="">
<A HREF="#" onClick="cal1.select(document.forms['frmCal'].date1,'anchor1','yyyy-MM-dd'); return false;" TITLE="); return false;" NAME="anchor1" ID="anchor1">select</A>
4. Here I use the name of the form (frmCal). Instead of that you can use the form number of that form. Suppose that is the first form then the form number should be zero.
Remember to give proper unique name for anchor tags and for text boxes to use multiple calendars in same form.
More Articles...
Shop at Rajamanickam.com | Birthday Gift Idea? | Hire me for $6 per Hour
Get 3 useful ebooks for Rs 99 in India and $5.99 globally
Get a 75% commission | ChatGPT and and Google Gemini for Beginners (Use Discount code QPT)
Thursday, April 30, 2009
Search This Blog
Art of Talking to AI | Tech eBook | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment