A
Adrian Parker
v1.1 - After taking off smartnav (due to it not working properly), I've got code that will restore the scroll position of the page
on
postback, but now I'm looking at how to set focus on either a field that has failed validation or on the next input field down the
page. What's the best approach. I've started by adding an onfocus attribute to each input field that records its ID in a hidden
field. Can I just read down through the DOM until I find that control and then either set focus on ir or the next input field
accordingly ?
on
postback, but now I'm looking at how to set focus on either a field that has failed validation or on the next input field down the
page. What's the best approach. I've started by adding an onfocus attribute to each input field that records its ID in a hidden
field. Can I just read down through the DOM until I find that control and then either set focus on ir or the next input field
accordingly ?