Forum Moderators: open
The code that I am using to do this is below:
function clearTask(lngLineNo)
{
var i = "InputName" + lngLineNo
document.FormName.InputName+i.value = "";
return false
}
If any one could help it would be much appreciated.
someName1
someName2
etc
then your problem isn't so much concatenation (although it's involved) but building a reference chain from arbitrary input. Here's how I think it'll work for you:
function clearTask(lngLineNo)
{
document.FormName['someName'+lngLineNo].value = "";
return false
}