errorPlacement: function (error, element) {
if (element.attr("type") == "checkbox") {
return element.next('label').append(error);
}
error.insertAfter($(element));
}
rules : {
password : {
minlength : 6,
},
password_confirmation : {
minlength : 6,
equalTo : "#password"
}
}
var $ = require('jquery');
require('suggestions-jquery');
$('.js-class').suggestions();