Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6594039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:45:34+00:00 2026-05-25T17:45:34+00:00

I will give a few examples of the form issue I am running into.

  • 0

I will give a few examples of the form issue I am running into. I have already been chastised for using ‘obstrusive js’ and trying to do a better job as a programmer but it makes it utterly frustrating when the ‘obtrusive js’ works and the unobtrusive does not. The overall goal is give submit() like behavior to something other than an actual form type=submit button, in this case an image link.

EXAMPLE 1

Example Link 1

Theory here would be that on the click of ID “pw_submit”, the form input is disabled (works), the submit function is called which triggers validate. The latter does not happen. Moving on.

EXAMPLE 2 –

See this JS fiddle: http://jsfiddle.net/YkuAk/

Works but with regular html button, not what I want/need

As I mention above, example 2 “works” in the sense validate is called but it does NOT achieve our goal of using a hyperlink, image, etc to initialize the submit() function.

EXAMPLE 3 – “obtrusive JS”

Third example with Obtrusive Javascript
This example works without any issue but as I mention above, have been criticized for using inline js. While in my mind it is NO different than the code in example one, clearly it is.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:45:34+00:00Added an answer on May 25, 2026 at 5:45 pm

    the validation plugin binds its own listener to form submit event. In the first fiddle, take the $("#someform").validate(); outside of the click event callback. The way it is now, the plugin is adding another submit listener to the form.

    EDIT:

    misread the fiddle. The validation plugin doesn’t validate disabled inputs.

    If you really want to validate all disabled form fields also, the
    relevant line in the plugin is
    .not(“:submit, :reset, [disabled]”) to which you can add or remove
    functionality.

    src: http://forum.jquery.com/topic/jquery-jquery-validate-validating-disabled-inputs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the past few days, I have been trying to find an answer to
i will give an example of the problem i have. My XML is like
Hope someone will give me a hand with this problem I have. So here
I am unsure on which approach will give me a better performance: I have
I've been trying to get this really simple example of using AJAX with JQuery
I've seen a few examples of using delegate with multiple threads for async image
I have come to the conclusion that using app domains for my project will
Which ORM will give me compile-tested queries? Is linqtosql compile time tested? Edit: Say
Which code snippet will give better performance? The below code segments were written in
AssemblyName.GetAssemblyName().Version.ToString() will give the version number ,,but i need to get version number from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.