This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is there a way I can pass the name of form as an argument in an function . example code is list belows
which "add_employee" is the form name
I noticed that the formName in "document.formName.fieldName" must be literately the form's name such as "<form name="formName">" to let it work.
my question is : is there away to replace the formName to an variable, so other page can use this function just simplely pass their form's name as arg in the js function.