Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- var form = $('#register-or-login');
- form.validate({
- messages: {
- _password: "",
- _username: ""
- }
- });
- $('[data-handler="clientHandler"]').on('click', function () {
- var passwordInput = $('#_password');
- if ($(this).val() == 0) {
- passwordInput.attr('disabled', 'disabled');
- passwordInput.removeClass('error');
- form.attr('action', $(this).data('form-url'));
- } else {
- passwordInput.removeAttr('disabled');
- form.attr('action', $(this).data('form-url'));
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement