Ok, based on this discussion I changed my DISABLED fields to READONLY fields. Now, on (second thought) a bit more testing, I realized I need that ugly (as you call it) scripting option as well. My form also has a reset type 'Clear' form button. The 'READONLY' form fields, are not cleared.
Well, I added an onClick function and attempted to reset the form fields. But I get a JS error saying 'form.MyTextBox has no properties'.
Any clues please. Thanks.
This is the script I have -
I also know that the JS is getting called. I checked this with alert(...) and it did alert me. [ July 07, 2005: Message edited by: Madhav Lakkapragada ]
I am going to take my hour drive home so you are on your own.
Joined: Jun 03, 2000
Ahh....I am missing the return false;. With that peice added, it is erasing the values alright, but my form seems to be pretty useless since the some of fields are still READONLY.
I think I need to have a BACK button instead of this whole reset form fields function. I hate to POST it to the server and do a RequestDispatch(...) back to the original JSP. Is there a decent way of doing this on the client side? Well other than the browser back button.