cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-focus form on page load even with VarienForm 2nd parameter set to false

SOLVED

Auto-focus form on page load even with VarienForm 2nd parameter set to false

Hi,

I've got a template to create a newsletter subscription field and I've created my form using: 

 

var newsletterSubscriberFormHeader = new VarienForm('newsletter-validate-header', false);

Even with the second parameter set to false it always focuses it on page load.

 

Can't seem to find what's the issue and the only solution proposed online is the set the second parameter to false which is already done. Any help would be much appreciated.

Thanks in advance!

 

P.S. I already tried commenting out the $("#newsletter-header").focus(); part but the same result occured.

Collin

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Auto-focus form on page load even with VarienForm 2nd parameter set to false

Oh forget about it I found out why!

View solution in original post

2 REPLIES 2

Re: Auto-focus form on page load even with VarienForm 2nd parameter set to false

Oh forget about it I found out why!

Re: Auto-focus form on page load even with VarienForm 2nd parameter set to false

What was the solution?