First of all Hello every body, and sorry if my english is not correct.
I work for a little software company and we have a problem, using a tab sheet made with javascript, when we validate a field, if it´s not valid we make an alert and set the focus to the field. This is a very generic function used in all tha aplication.
Well my problem is that if the field is not located in the same tab where you are in the moment of the validation i get a javascript error because the fields on the other tabs are hidden and it says cannot focus to a non visible object.
Anybody can help how could a verify if the field is hidden or visible???
i´ve tried to use this:
if(document.getElementById(‘capa’).style.visibility==’visible’)
·······
······
but this propertie is ” or null wether is visible or not.
Anybody has any idea of how to check if I can make a focus to a field???
Thanks a lot!!!!
Força Barça!