By default, the validate-Plugin module uses ignore: ":hidden"
, which uses jQuery.not()
to exclude everything from the ignore parameter.
If you want to include hidden fields, you can use this:
$("#myform").validate({ ignore: "" });
In your case, use this Javascript code:
$(document).ready(function () { $("#someForm").validate({ ignore: "" }); $('#tagsx').tagsInput({ width: 'auto', autocomplete_url: 'http://xoxco.com/projects/code/tagsinput/test/fake_json_endpoint.html' }); });
Update: As I saw in the verification code, -Attribute is strongly required because the plugin saves everything with name
. Even if you add only the ignore: ""
code to your code, it will give one validation error because it is stored with the same name
and the name is null
.
This is where JSFiddle works:
Jsfiddle
source share