By ponkarthik on
Hi
I am developing a module with a form. I have installed the jquery calendar module. But I am not able to figure out how to add the calendar popup to a text field.
Advance thanks for the help.
Karthik
Hi
I am developing a module with a form. I have installed the jquery calendar module. But I am not able to figure out how to add the calendar popup to a text field.
Advance thanks for the help.
Karthik
Comments
Add some java script
In a javascript file.
Then use drupal_add_js to add let the module make use of the jquery javascript.
Have fun and check my Drupal Profile: http://drupal.org/user/519
Via attributes
Hi,
I assume you mean the jscalendar which is available inside the jstools-module.
In the README.txt there is a smal hint. You simply have to set the #attributes of your textfield like this:
Best regards
Stefan