1

With the addition of form associated web components, we are now able to write custom web components that act as a form item when placed inside a form. I am wondering if it is possible to use jQuery Validate with a form associated custom web component?

From what I can tell looking through the code it appears to be hard-coded to use the standard HTML form inputs and there doesn't appear to be a way around this without modifying the jQuery validate code, but wanted to be sure that there weren't any "hacks" to get around that, or if someone has already made the modifications out there somewhere.

I also realize that I could potentially hook into the native form validation API, but this is for a form that is already using jQuery validate and I don't really want to have to convert it over to the native API.

1
  • 2
    "hard-coded to use the standard HTML form inputs and there doesn't appear to be a way around this without modifying the jQuery validate code" - yes, correct. I've answered thousands of jQuery Validate questions and know of nothing already made that satisfies your request. Commented Jul 29, 2022 at 2:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.