Sha256: ba5f291440feeb465aa26ba61a202fbb2acda74c37e172b9b6c449309b8280e2
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
$(function () { $('#sign_up').validate({ rules: { 'terms': { required: true }, 'confirm': { equalTo: '[name="password"]' } }, highlight: function (input) { console.log(input); $(input).parents('.form-line').addClass('error'); }, unhighlight: function (input) { $(input).parents('.form-line').removeClass('error'); }, errorPlacement: function (error, element) { $(element).parents('.input-group').append(error); $(element).parents('.form-group').append(error); } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jinda_bsb-0.0.1 | lib/generators/jinda_bsb/templates/app/assets/jinda_assets/js/pages/examples/sign-up.js |