I have a text box that allows the user to enter the date. They want to be able to enter the date with no separators (like 03052002) and on tab have the date automatically self correct to show the correct date format of 2002-03-05 (YYYY-MM-DD). Is there a way to do this that won't conflict with my php that is used in the page? The name of the text box can't change do to backend processing.
If javascript is nicely placed in a function, it doesn't matter where it goes. However, to satisfy logic, convention, readability, and debugging, it's best to put your scripting in the <HEAD>
Bookmarks