Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jquery validation plugin issue

Featured Replies

Hi All,


I've begun delving into JS and have what is probably a very simple problem that is just completely doing my nut.


Im trying to use the JQuery email validation plugin, demo works here no problem:




When trying to implement it into my form im not having any joy at all:




I've noticed in there is no focus event listener showing in chrome devtools on the input element on my signup page whereas on the demo there is so im guessing for whatever reason this isnt being applied to the element.


There are workarounds however these plugins look very useful and would like to understand them for future use if possible. I tried stripping out all of the css currently in place to no avail too.


Any help is greatly appreciated!


Cheers


Sam

You're calling Jquery twice, 1st at the top of page then at the bottom.

Remove the top instance and move the validator plugin to the bottom (after Jquery).

What's happening is:

1. You load Jquery (top of page).
2. You're extending this Jquery with the plugin.
3. You're over writing the above with the second call to Jquery.

  • Author

Thanks Wynn :) this was indeed the problem, moving the code down and the duplicate jquery include resolved the issue.

 

Cheers

 

Sam

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.