Answer the question
In order to leave comments, you need to log in
jquery validation doesn't work submit disable when fields are not valid?
There is a SUBMIT button, it looks like this
<p class="submit">
<input type="submit" name="wp-submit"
class="submit button button-primary button-large"
value="<?php echo esc_attr_x( 'Sign up', 'Login popup form', 'eduma' ); ?>"/>
</p>
jQuery(document).ready(function(){
jQuery("form.auto_login").validate({
rules:{
user_login:{
required: true,
minlength: 4,
maxlength: 16,
},
password:{
required: true,
minlength: 6,
maxlength: 16,
},
},
messages:{
user_login:{
required: "Это поле обязательно для заполнения",
minlength: "Логин должен быть минимум 4 символа",
maxlength: "Максимальное число символов - 16",
},
password:{
required: "Это поле обязательно для заполнения",
minlength: "Пароль должен быть минимум 6 символа",
maxlength: "Пароль должен быть максимум 16 символов",
},
submitHandler: function(form) { // <- pass 'form' argument in
$(".submit").attr("disabled", true);
form.submit(); // <- use 'form' argument here.
}
}
});
});
submitHandler: function(form) { // <- pass 'form' argument in
$(".submit").attr("disabled", true);
form.submit(); // <- use 'form' argument here.
}
Answer the question
In order to leave comments, you need to log in
submitHandler: function(form) { // <- pass 'form' argument in
$(".submit").attr("disabled", true);
form.submit(); // <- use 'form' argument here.
}
I may seem Q.O., but the grep utility is missing
if you are using the ipkg package manager, then do ipkg install grep
I have WL-500GP v2 with firmware from here . Grep in the system is:
# /bin/grep
BusyBox v1.19.3 (2012-06-12 19:25:23 MSK) multi-call binary.
…
See what you have there.
PS As ipkg is ipkg.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question