My form is little complex, everything is on landing page welcome/index.html.erb
.
This form has two tabs: products and users.
Under products tab there are features like:
- create new product
- show list of products
For each product there are options like:
- add user to product
When I click on create new product there is div open which has form for new product.
I tried using client_side_validation
but no success (from google search it looks like this gem is not supported for rails 3.2.13).
How can I show validation error when I submit my form using jquery?
this.submit(function() {
//$('#createPolicy').slideToggle();
$.post(this.action, $(this).serialize(), null, "script");
return false;
})
return this;
Thanks for your help.