Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

ASP.Net Core support #318

Open
cloewen8 opened this issue Feb 8, 2020 · 0 comments
Open

ASP.Net Core support #318

cloewen8 opened this issue Feb 8, 2020 · 0 comments

Comments

@cloewen8
Copy link

cloewen8 commented Feb 8, 2020

I am interested in using validate.js in place of Microsoft's jQuery Validation (unobtrustive) plugin. Aside from rewriting all of the validation again (gross), is there any other way I can currently do this?

Ideas

  • Override every validation attribute's AddValidation method to add html attributes that validate.js will understand (if any).
  • Create a script that takes Microsoft's html attributes and loads them into validate.js.
  • Dynamically generate JSON for validate.js, based on applied C# attributes.

Questions

  • Is validate.js at all compatible with Microsoft's data-* attributes?
  • Can validate.js respond to html attributes at all and if so, what are they?
  • If these ideas are not currently possible, would you be interested in a contribution to address this?
    And if so, what would be the best option for everyone?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant