File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
Dynamic Form Element
Joined: Oct 26, 2006
Nov 29, 2006 08:37:00
I have a form element say textfield and name of that text field is say quality_03. the 03 is calculated dynamically. Finally I would like to assign a value for that text field say.,
var numVal=03 // Its calculated in loop I have given this for an example.
For this I have used
var txt = form."quality"+"_"+numVal.value
But it didnt accept. It shows the error as txt not object. Can someone help me out with this one. I need this very urgently. I have deployment tonight.
[ November 29, 2006: Message edited by: Bear Bibeault ]
Joined: Nov 08, 2001
Nov 29, 2006 12:16:00
document.forms.elements["foo" + bar].value
I agree. Here's the link:
subject: Dynamic Form Element
Validate multiple fields base on a requiredif
Problem with carrying over the correct months while using GetDate()
Trying to extract text portion of select statement entry
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015