Enable/Disable form fields in a Webpage

Have you ever though about disabling form fields in Webpage.

This will be especially useful when you need to enable/disable some form
fields based on the user input.

Here is the code that can be used to disable a form field


To disable this particular field use this

document.getElementbyID("name").disabled =true;

This entry was posted on Monday, July 27th, 2009 at 10:43 pm and is filed under Webmaster. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Post a Comment