![](https://static.wixstatic.com/media/c7299a_6759c1c0fe544becb137504a3ba8c04f~mv2.jpeg/v1/fill/w_115,h_86,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/c7299a_6759c1c0fe544becb137504a3ba8c04f~mv2.jpeg)
Tags: Bedienungsanleitung-PDF-frei . rotfuchs motorsense bedienungsanleitung pdf free .Q:
Check if password valid
I would like to check if password is valid or not, when i click on the button add, if the input is empty the button will be disabled.
I have tried this
function check_validity(value) {
if (value == "") {
$(".btn-add").attr("disabled", "disabled");
return false;
}
return true;
}
and this
function check_validity(value) {
if (value == "") {
$(".btn-add").attr("disabled", "disabled");
return false;
}
return true;
}
This is the button
This is the add button
Add
A:
First thing first. If you use input or text then validation does not need JS, it's already built in HTML5. If you're using a Bootstrap form.
You can easily do this using the.rules() method from.validator().
var $f = $('.form');
var $b = $('.btn-add');
$b.click(function() {
if (!$f.valid()) {
return false;
}
var v = $f.validate({
rules: {
password: {
minlength: 5,
required: true be359ba680
Related links: