Friday, December 28, 2007
OnClientClick function
Found this great functionality by accident while trying to get a hidden field value to be set BEFORE the page was refreshed. I spent hours trying to set a hidden field value to a default value, but couldn't find a good way to do this. Turns out that OnClientClick happens before the page is refreshed. Something to remember for future use. I set the OnClientClick="javascript:document.some_field.value=X;"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment