show above input.focus()

mdavi71

New Member
When I'm doing \[code\]input.focus();\[/code\] on form input with error. The cursor points on that input but Since I have a fixed header whose height is around 100px,the input field is not visible.Is there a way where I can go beyond that input fields something like \[code\]input.focus(-100);\[/code\]?I have also tried \[code\]input.scrollTop();\[/code\] but it doesn't go any where near that input.
 
Back
Top