I am unable to focus on HTML elements using JS
I have a JS function that performs an AJAX call to retrieve some HTML data, then refreshes then contents of a <div> with the retrieved data. After refreshing the <div> content, I would like to replace the cursor in whichever element the user had in focus before the JS function was called. This is part… Read More I am unable to focus on HTML elements using JS