Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:26:15+00:00 2026-05-22T20:26:15+00:00

I have a long list of items with date fields. Allowing jQuery to assign

  • 0

I have a long list of items with date fields. Allowing jQuery to assign the datepicker to all the items with the class of datepicker is creating a pop up script (something to the effect of the script is runnning a really long time, do you want to stop the script, yes or no) not to mention it is taking a while for the document be rendered. When we remove the datepicker class, the page is rendered almost immediately. So, what I’d like to do is have the input field where the date would normally be populated with a trigger (link or graphic) that can be clicked to fire the datepicker popup calendar. This way, we only need to provide the popup calendar only on the field that actually needs it.

IDs are not available, only the name attribute is.

    <tr>
    <td><input type='text' name='StartDate' /> <span onclick='ShowCalendar()'>Calendar</span></td>
    <td>other fields</td>
    <td>more fields</td>
    </tr>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:26:16+00:00Added an answer on May 22, 2026 at 8:26 pm

    I tried the following:

    <script type="text/javascript">
        function createDatepicker(input) {
            $(input).datepicker().datepicker("show");
        }
    </script>
    
    <input type="text" name="someText" /><br />
    <input type="text" name="someDate" onclick="createDatepicker(this)" /><br />
    <input type="text" name="someText" /><br />
    <input type="text" name="someDate" onclick="createDatepicker(this)" /><br />
    

    Using this answer, I constructed the above solution:
    How to run date picker on the first onclick event?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very long list of Ids (integers) that represents all the items
Case example: I have a long list of items, and when I put my
I have a very long list of items for a dropdownlist. As the list
I have a long scrolling list of EditText items created by a SimpleCursorAdapter and
I have a text file that has a very long list of items. So
I have a really long list of itinerary items with integer values. I was
I have a ListField which is a long vertical list of items you can
I have a long list to display in a listview. Let's say 200 items.
I have a long list of items where clicking on an item may move
I have a long list of items display on my drop down list. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.