I am trying to use Parsley.js for validate some form fields. After read the docs and see how I should use it I follow the next steps:
- Add the attribute
data-validateto form<form action="" id="product_create" method="post" data-validate="parsley"> - Add the extra attributes to form fields
<input type="text" id="product_price" name="product[price]" data-trigger="change keyup keypress" data-required="true" data-type="number">
If I don't understand bad so when I change the value of #product_price error should appears right? Well it doesn't and I can't find why or how I'm doing wrong, any advice