• 0

loading JQuery UI Datepicker inside colorbox


Question

I`m using Colorbox to load a contact form from an external HTML file and in the form i want JQuery UI datepicker to work , both files have the datepicker script but it doesn`t seem to be working ?

$('#order').colorbox({href:'order.html'});

$('contact_date').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true
});
[code]
<form id="contact">[/size][/font][/color]
[color="#333333"][font="Arial, Helvetica, sans-serif"][size="2"]<fieldset>[/size][/font][/color][/size][/color]
[color="#333333"][font="Arial, Helvetica, sans-serif"][size="2"]<div>
<label for="contact_name">Name</label>
<input type="text" name="contact_name" id="contact_name" />
</div>
<div>
<label for="contact_email">Email</label>
<input type="text" name="contact_email" id="contact_email"  />
</div>
<div>

<label for="contact_date">date</label>
<input type="text" name="contact_date" id="contact_date"  />
</div>							   [/size][/font][/color]
[color="#333333"][font="Arial, Helvetica, sans-serif"][size="2"]<div>
<label for="contact_textarea">Message</label>
<textarea name="contact_textarea" id="contact_textarea" cols="30" rows="10" ></textarea>
</div>
<button>Send</button>

</fieldset>
</form>

so how can i fix this ?

Note: for some reason the editor is adding some inline tags !

2 answers to this question

Recommended Posts

  • 0

On ColorBox's website there is:

JavaScript/jQuery is not working inside of ColorBox.

This is often due to trying to access an element before it has been loaded into the document and can be resolved by moving the JavaScript into ColorBox's onComplete callback.

Example (using jQuery Forms plugin):

$('#login_window').colorbox({onComplete:function(){
    $('form#login').ajaxForm();
}});

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Bunch of w*nkers. . 
    • Autonomous post-training loop placed 8th of 4,000 and then rewrote its own evaluation strategy. An autonomous AI system built by researchers at Amazon's A-EVO-Lab completed a full post-training run on a 30 billion parameter NVIDIA Nemotron model — with no human in the loop, across four rounds running over multiple weeks — and then did something its designers had not planned for: it detected that its own internal evaluation metric had become misleading and redesigned the search strategy it was using to improve itself. https://www.techtimes.com/articles/319123/20260626/nvidia-ai-trained-itself-30b-model-corrected-its-own-broken-metric-mid-run.htm
    • Grok Adult Content Tops 10 Billion Images Monthly More than half of all traffic flowing through Grok, Elon Musk's flagship AI product, now comes from users requesting pornographic images, explicit videos, and **** roleplay https://www.techtimes.com/articles/319142/20260626/grok-adult-content-tops-10-billion-images-monthly-xai-engineers-admit-csam-has-no-fix.htm
    • If Ford would stop hiring SUITS to run the company, and put CAR GUYS back in charge perhaps they could do better. Heck, the only CAR they produce today is the Mustang. Hey Ford! Not everyone needs/wants an overpriced SUV or pickup truck that is so tall you have to have a step ladder to get in and out of it.
    • Amazing how some will just jump all over something. Probably the same people that thought Musk was a "tech god" before he saddled up with "bad orange man". Before, they worshiped at his feet, including a lot of so called hollywood types. Now, because he fell off the plantation truck, they toss him under the bus.
  • Recent Achievements

    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
    • Week One Done
      tuben earned a badge
      Week One Done
    • First Post
      OffsetAbs earned a badge
      First Post
    • Reacting Well
      OffsetAbs earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      501
    2. 2
      +Edouard
      229
    3. 3
      PsYcHoKiLLa
      163
    4. 4
      Steven P.
      76
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!