Hi All,

I have an aspx page which is being validated by javascript..The peculiarity of this page is that out of 8 text boxes only 4 are visible depending on some values in database (completely handled by the aspx page)

The whole script is run when the 'save' button is pressed. The problem arises when the validations for the textboxes which are not currently visible are run...

I have tried my best to detect if the object exists....
i tried to put my validations under

if typeof document.getElementById('textbox') != 'undefined'
{
}

but this doesnt work...then i tried checking its style.visibility property if set to hidden...that also doesnt seem to work.

Any solutions??