How to find control?

Hi

There is a textbox control on the form.Name of the text box is txtIn.

How can we find the perticular control is existing or not on the form

Pls help me.

Thanks in advance

sanjay



Answer this question

How to find control?

  • kayronjm

    if(document.formName.elementName){
    alert("It is here");
    }


  • Lu Campos

    if(document.getElementById('txtIn'))
    {
    alert("found");
    }
    else
    {
    alert("not found");
    }



  • How to find control?