Hello,
when setting a field in a document to a specific value like below,
document.Form1.qnt_handmic.value = 0
Is it possible to use a variable instead of specifying the textfield 'qnt_handmic'
I have tried to illustrate what i'm trying to achieve here.
function quantity(current_texfield) {
var strname = document.Form1.current_texfield.value
if (strname > 0 ) {
document.Form1.current_texfield.value = 0
}
any help would be greatly apreciated
when setting a field in a document to a specific value like below,
document.Form1.qnt_handmic.value = 0
Is it possible to use a variable instead of specifying the textfield 'qnt_handmic'
I have tried to illustrate what i'm trying to achieve here.
function quantity(current_texfield) {
var strname = document.Form1.current_texfield.value
if (strname > 0 ) {
document.Form1.current_texfield.value = 0
}
any help would be greatly apreciated