I have a relatively simple issue I'm trying to resolve and can't seem to find anything about it.
I am working on existing product, after an error modal is closed I need to focus on a given form field, which at this point I will have stored in a variable.
Currently this works:
You are using a variable name instead of its contents.
$("input[field='" + myField + "']").focus();