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 6579523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:54:33+00:00 2026-05-25T15:54:33+00:00

I used JQuery UI date- and time picker on my website in a form.

  • 0

I used JQuery UI date- and time picker on my website in a form. The user can choose the date, time and he can give some additional information. But for some reason, every time the user clicks on the text input for the additional information, the date- and time picker pop-up pops open… What is wrong?

And for the record, all is includes inside a php foreach-loop. Don’t know if it has something to do with it.

Date and time picker code:

<label class="labelx">Date: </td>
<input class="inputx" type="date" id="datepicker" name="datum" value=""></p>

<label class="labelx">Hour: </td>
<input class="inputx" type="text" id="timepicker" name="hour"></p>

<label class="labex">Title: </td>
<input class="inputx" type="text" id="title" name="titel"></p>

<label class="labex">Info: </td>
<input class="inputx" type="textfield" id="text" name="info"></p>

<input type="hidden" name="submitted" value="activitypost"/>
<input type="submit" name="submitted" class="verzend" value="Add"/>

JQuery:

<script>
    $j(function() {
        $j( "#datepicker" ).datepicker({ minDate: +0});
    });
</script>
<script>
    $j(function() {
        $j( "#timepicker" ).timepicker();
    });
</script>
  • 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-25T15:54:33+00:00Added an answer on May 25, 2026 at 3:54 pm

    Your labels are is not closing properly. Use them like this:

    <label for="datepicker" class="labelx">Date: </label>
    

    The for attribute references the id of your <input>.

    Also, remember to close your inputs, like this:

    <input class="inputx" type="date" id="datepicker" name="datum" value="" />
    

    And that </p> is not necessary, you can remove them.

    I got your code working here, except your timepicker, which is not from jQuery UI:
    http://jsbin.com/iqiyiy/edit

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

Sidebar

Related Questions

I'm looking to create a wrapper control for JQuery date time picker control to
i used basic date picker in asp.net mvc and it works fine but now
using some date time picker plugins i am unable to rebind them after ajax
I used jquery stepcarousel plugin and it works fine... But how to preload images
Successfully used jquery-infinite-carousel in the past but for my current project I need it
Yesterday I used jQuery UI for the first time and I think I'm going
i am trying to use a date picker, but i am not sure how
When I used datepicker with trigger icon so that users could choose date from
I used different jQuery plugins and in some cases they were not working properly
I'm using JQuery in my application of Form Buildr I have used the Clean

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.