Focus form field (cursor inside) on button click

Hey guys,

Is there a way that when I click on a button to scroll me up to the page to where I have the form and have the cursor blinking inside the first field?

Thank you very much!

Marius


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

You’ll need custom code for this.

got it, thanks! is there a place where you can point me to get like a sample code that I can modify?

Yes, here you go JQuery onclick function to focus input - Stack Overflow

2 Likes

Sam, this might be a silly question, but can I paste the code into the custom code section?

I did this, and it didn’t work…

No, all JavaScript must go in the footer, unless you know what you’re doing.

Yes, it worked!! I moved it into the footer and it worked! Thanks a lot!!