Community

ui.datepicker (1.7.2) not working with <input>?

Hi everybody,

Version info:

  • jQuery 1.3.2
  • jQuery 1.7.2
  • Drupal 6

I'm currently building a custom.tpl.php where I want to use ui.datepicker and ui.tabs from jQuery UI API.
I got the tabs function working, but the ui.datepicker funtion is not working properly.
It works if I do a

<div id="datepicker"></div>

I check drupal report, and everything looks good.

Do you got anything suggestions?

Here's my code(I commented the tabs, since that not my problem).

<?php
jquery_ui_add
('ui.datepicker');
//jquery_ui_add('ui.tabs');
$jquery_ui_css_path drupal_get_path('module', 'jquery_ui') . '/jquery.ui/themes/base/ui.all.css';
$jquery_ui_css_path2 drupal_get_path('module', 'jquery_ui') . '/jquery.ui/themes/base/ui.datepicker.css';   
drupal_add_css($jquery_ui_css_path);
drupal_add_css($jquery_ui_css_path2);
?>

<script>
Drupal.behaviors.nodeCourse = function(context)
{

//$( "#tabs" ).tabs();

$( "#datepicker" ).datepicker();
};
</script>

<input type="text" id="datepicker">

Thanks in advanced!

Kind Regards Alex

nobody click here