I wanted to know how I could find the previous active control on a page. I have a couple of textboxes and a button, and when i am on a certain textbox and I click the button, I want to highlight that textbox. I have the highlight functionality covered, but I don’t know how to find out which textbox to run the function on…
Please help,
Thanks!
you’ll have to keep track of it yourself you could try something like this:
then on each element you want to track:
Then when you want to highlight the previous element you could just use the prev_el_id variable to find out which element it was.