JQuery Datepicker “setDate” whitespace problem

In Firefox, if you try to set date for datepicker object like $(‘obj’).datepicker(“setDate”, “01.01.2010″); , your page automatically create a scrollbar; no visible characters (maybe whitespace), only a scrollbar shown.

This problem happens if you have the line below on the top of your page;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Delete this line and check the result.

If you have a solution for this issue by not deleting the line above, please comment.

Regards,
Farkow

Share
Comments are closed.