Tuesday, May 8, 2007

Hi ,
Some times we require to clear the control status at one click for our web application. Using javascript its very easy.you can clear the control status

for example(TextBox/Input)

function ClearTextBoxExample()
{
var loTextBox = document.forms[0].elements;
for(var i=0;i
{
if(loTextBox[i]=="input")
{
loTextBox[i].value = "";
}
}
}

Regards
Pankaj

0 comments:

Post a Comment