Streaming live at 10am (PST)

Focus form field (cursor inside) on button click


#1

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)


#2

You’ll need custom code for this.


#3

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


#4

Yes, here you go https://stackoverflow.com/q/7285197/584192


#5

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…


#6

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


#7

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