Menu
New to Javascript and I’m trying to accomplish this.. I’m wrapping text input and submit button form elements inside a div. When either the text field or the submit button gain focus, I want to swap the class on the parent div. The form elements themselves wouldn’t change, but the wrapper div would, for example, gain and lose a border depending on whether any of its contents had focus.
Any suggestions?