- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2016
08:16 AM
07-08-2016
08:16 AM
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
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2016
08:32 AM
07-08-2016
08:32 AM
Oh forget about it I found out why!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2016
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2019
03:59 AM
01-18-2019
03:59 AM
Re: Auto-focus form on page load even with VarienForm 2nd parameter set to false
What was the solution?