G
Guest
I am writing an application using VS2005 and I am using javascript on the
client side. I have a table that contains textboxes and I want to set the
contents of all of them to the empty string in javascript. I cannot permit a
postback in this scenario. I want to find the textboxes by using:
var txtBoxes = document.getElementsByTagName("input");
I can then iterate the array and set the value for all inputs of type text
to the empty string. However, I find the getElementsByTagName function is
not there.
What happened to it? What's a good alternative to resolve this?
client side. I have a table that contains textboxes and I want to set the
contents of all of them to the empty string in javascript. I cannot permit a
postback in this scenario. I want to find the textboxes by using:
var txtBoxes = document.getElementsByTagName("input");
I can then iterate the array and set the value for all inputs of type text
to the empty string. However, I find the getElementsByTagName function is
not there.
What happened to it? What's a good alternative to resolve this?