Question
Bank of America
IN
Last activity: 4 Jan 2022 0:29 EST
SetFocus for the first field in the screen which has errors
Hi
As per accessibility requirement we have to set focus on first field in the screen which has the error.
For ex- if second fields is blank and we click on submit then our focus should go to second field.
I am trying to implement the javascript code for this requirement.
So want to know if there is any way to get the elementid name dynamically for any property.
I can get the property from clipboard which has the error then we can pass it as param in our script and get the emelementid and setfocus.