Streaming live at 10am (PST)

Autofocus on button click

I have a mobile layout where there is a signup button on top. On click of this button, the user is scrolled to an email form. I’d the email for to focus once the user is scrolled to the form. Any suggestions on how to achieve this?


Here is my public share link: [https://preview.webflow.com/preview/betcha?utm_medium=preview_link&utm_source=dashboard&utm_content=betcha&preview=d27aa725287f3678c76e358ccebb207d&mode=preview][1]

Hi Matthew, Welcome to the forum :webflow_heart:

You can add this to your custom code section:

<script>
$('.SignUpMobile').click(function () {
    $('#email3').focus();
}); 
</script>

Thanks @avivtech ! That seems to have worked.