|
|
Q788 How can I write a generic function that will accept parameters from a form button and update one of many different textarea with the contents of one of many different select form fields in one of many different forms?
irt.org | Knowledge Base | JavaScript | Form 10.2 | Q788 [ previous next ] Q788 How can I write a generic function that will accept parameters from a form button and update one of many different textarea with the contents of one of many different select form fields in one of many different forms?The following should be generic enough for you:
The additive() function expects to be passed the form number (f), the select field number(s) and the textarea number (t and n). These are then expanded to make up the full object name of the elements to affect, where the forms are named f1, f2... fN, the select fields are named s1, s2... sN, and the textareas are named t1n1, t1n2, and t2n1, t2n2, and can be extended to tNnN. Feedback on 'Q788 How can I write a generic function that will accept parameters from a form button and update one of many different textarea with the contents of one of many different select form fields in one of many different forms?' |
-- div -->
|