form_utils.js is a simple JS library that provides an uniform way to get/set any type of form element. For e.g
setForm("v_form", "f1", "new Button");
This package is free software. It is distributed under GPL - legalese removed, it means that you can use this for any purpose, but cannot charge for this software. Any enhancements you make to this piece of code, should be made available free to the general public! You should also carry a link to this page for users to download the latest version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
code. Use View Source
for examples. You can also use the same utility for inline form validations. See example