samar
Multiple implementaion of datepicker.
1 Answer(s)      4 years and 6 months ago
Posted in : JavaScript Questions

Hello Sir

    I am using date-picker in my web page. But i need to put date-picker on multiple text fields without using different "id" for text fields.

Please help me and give me some code line also.

Thanks in advance

Advertisement
View Answers

December 11, 2010 at 12:39 PM


I use a CSS class instead:

<input type="text" id="BeginDate" class="calendar" />
<input type="text" id="EndDate" class="calendar" />

Then, in your document.ready function:

$('.calendar').datepicker();

Using it that way for multiple calendar fields works for me.










Related Tutorials/Questions & Answers:
Multiple implementaion of datepicker.
Multiple implementaion of datepicker.  Hello Sir I am using date-picker in my web page. But i need to put date-picker on multiple text fields...: $('.calendar').datepicker(); Using it that way for multiple calendar fields works
Validation of datepicker
Validation of datepicker  I have a datepicker in my JSp...the seleted dates are put in a text box. I want the alert the user from selecting future dates in the startDate and enddate textbox.So that the user will be alerted wen
Advertisements
jquery datepicker example
jquery datepicker example  √?¬†jquery datepicker example - i wants...').datepicker( { changeMonth: true, changeYear: true...(dateText, inst) { var month = $("#ui-datepicker-div .ui-datepicker
vaidate a date from datepicker in javasript
vaidate a date from datepicker in javasript  validation should be the user should be alerted wen a future date is selected..validation can be done in javascript or jsp itself
jQuery UI Widget : Datepicker
jQuery UI Widget : Datepicker       jQuery UI Widget : Datepicker You can datepicker to your web page for inputting date. The language and date
having difficulties in dynamically adding textbox with datepicker
add new row of textbox. And also able to use datepicker for the textbox as well. However, I am able to add and display the textbox but not the datepicker. I...', "datepicker"); cell1.appendChild(element1); $(function
Datepicker not getting called through include function of php
Datepicker not getting called through include function of php  my... of the endDate datePicker to be the start date the user has just selected..."); // Set the low range of the second datePicker to be the date parsed from
multiple inheritance.
multiple inheritance.  hello, can java support multiple inheritance???   hi, java does not support multiple inheritance
multiple inheritance
multiple inheritance  why java doesn't support multiple inheritance? we can achieve this by using interface but not with classes? what is the main reason that java community implemented like
multiple inheritance
multiple inheritance  Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
Multiple Inheritance
Multiple Inheritance  All are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined... class so java any how do multiple inheritance? Can you please explain
Multiple Inheritance
Multiple Inheritance  Why Java Doesn't have Multiple Inheritance It is Advantage or Disadvantage.........   Hi Friend, When we extends... and inconsistencies Java does not support Multiple Inheritance. Thanks
multiple inhertence
multiple inhertence  package start; class A { protected void a() //a method in A { System.out.println("Class A"); } } class B extends A { public B() { super
multiple inhertence
multiple inhertence  package start; class A { protected void a() //a method in A { System.out.println("Class A"); } } class B extends A { public B() { super
Add multiple UIBarButtonItem
Add multiple UIBarButtonItem  add multiple uibarbuttonitem
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
mail with multiple attachments
mail with multiple attachments  code for sending mail with multiple attachments in jsp
insert multiple selection - Java
insert multiple selection - Java  how to insert multiple selection values from html into database using servlets
multiple select values
multiple select values   can you provide an example for multiple select values for html:select tag
multiple resultset in one resultset
multiple resultset in one resultset  how to retrive multiple resultsets in one resultset in java.? plz help
multiple selections list in Struts
multiple selections list in Struts  How to create a multiple selections list in Struts? and retrive seleted values
Remove multiple elements in arraylist
Remove multiple elements in arraylist   how can we remove multiple values in arrayList? only remove method we used for single remove.but i want to delete multiple value in arrayList
struts2 select tag multiple
struts2 select tag multiple  struts2 select tag multiple
select tag multiple values
select tag multiple values   I want to insert multiple values in database which i have selected from select tag
multiple submits, single form.
multiple submits, single form.  is it possible to use multiple submit buttons in a single form?   Thank you
multiple choice questions
multiple choice questions  how can i store 10 multiple choice questions in one class with using java language
multiple choice questions
multiple choice questions  how can i implement the program to store multiple questions in class with using core java concepts
How Insert DateTime Vales into Mysql Databse from the front end application.But User Gives Date only from Datepicker,not Time
How Insert DateTime Vales into Mysql Databse from the front end application.But User Gives Date only from Datepicker,not Time  I am new developer in .net,I Have requirement..like this ,when user pick date from date picker
How Insert DateTime Vales into Mysql Databse from the front end application.But User Gives Date only from Datepicker,not Time
How Insert DateTime Vales into Mysql Databse from the front end application.But User Gives Date only from Datepicker,not Time  I am new developer in .net,I Have requirement..like this ,when user pick date from date picker
query regarding multiple select
query regarding multiple select  i have a select in jsp with multiple options.When i select multiple values i am not able to insert it into database and how do i retrieve them..please help me with an example code