i have a function which clears textboxes when a radio button is clicked. i have tested it, and the value of the variables is being passed correctly, but i'm not sure how to write the syntax to call the variable when clearing the form the following way:
document.mtgapp.(dt1).value="";
dt1 is the variable, and writing the line as above doesn't recognize it.
here is the function:
function clearDtBx(dt1,dt2,dt3)
{
document.mtgapp.(dt1).value="";
document.mtgapp.(dt2).value="";
document.mtgapp.(dt3).value="";
}
sorry if this is a stupid question, i'm still learning!
document.mtgapp.(dt1).value="";
dt1 is the variable, and writing the line as above doesn't recognize it.
here is the function:
function clearDtBx(dt1,dt2,dt3)
{
document.mtgapp.(dt1).value="";
document.mtgapp.(dt2).value="";
document.mtgapp.(dt3).value="";
}
sorry if this is a stupid question, i'm still learning!