Question

Calling out to the jQuery, Parsley, and CSS Guru Masters!!!

So I just downloaded the new Parsley.js 2.0 and within the zip file it gives many extras, however the documentation on these extras range from poor to none. I've noticed the parsley.css file. I was curious if all I had to do was link to it and parsley would use the .css file or if I had to give my forms extra classes for it to work.

Thanks again guru masters!

Était-ce utile?

La solution

Try including the css file to see if you are satisfied with the result. It should work, but if you want it to look different you should include your own styles. You can use the provided css file as a starting point.

From the parsley.js docs:

"Parsley adds many classes and elements in the DOM when it validates. You are strongly encouraged to customize them in your own stylesheets, but here is the "standard" Parsley css file that is used here on the documentation and examples, if you want to use it to bootstrap your projects with Parsley."

http://parsleyjs.org/doc/index.html#psly-installation-basic

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top