Alyssa K 25.Feb.03 05:28 PM a Web browser - Category - 2.0.8 Windows NT
I'm trying to focus the h_Name field when the page loads for the first time (not published). This should be very simple and easy. The focus part works however the cancel and publish buttons dont work anymore when this portion of the script is enabled.
Is it true focus will not work when there are diabled fields?
Below is my code.
var myform = document.forms;
if(h_IsNewDoc!=0)// If it is a new doc add today's date as default.
document.forms.h_CalendarDate.value = datechoice;
if (h_IsNewDoc==0) // If it is not a new document, disable fields.
document.forms.h_Name.disabled = true;
document.forms.c_DocNo.disabled = true;
document.forms.h_CalendarDate.disabled = true;
document.forms.c_DocDescription.disabled = true;
If you can help please post a response.
I've also tried this and it doesn't work either.