amrali / parsleyjs-meteor

Meteor packaging for Parsley.js
10 stars 14 forks source link

Can you post an example #8

Closed rootedsoftware closed 10 years ago

rootedsoftware commented 10 years ago

Can you post an example with the js file and the HTML files? I'm having trouble knowing if I've got all the pieces in place to really make this work. Also, so far many of the part of my validation aren't working at all or aren't working right. If you have any forms that also use bootstrap for the error styling that would be great to see.

Thanks

amrali commented 10 years ago

http://parsleyjs.org/doc/examples.html does this help?

rootedsoftware commented 10 years ago

No, not really. I have already been using these examples and the form fields are not correctly being checked.

rootedsoftware commented 10 years ago

I think I figured out what was going on.

I needed to add this line into the rendered area for my template.

Template.name.rendered = function () {

  // Setup parsley form validation
  $('#donation_form').parsley();
}

Then add this into the form tag data-parsley-validate