hi i am using jquery validator plugin , i saw annnotation like this
|=
what does this mean , i have never seen like that ,
this is code
// http://docs.jquery.com/Plugins/Validation/valid
valid: function() {
if ( $(this[0]).is('form')) {
return this.validate().form();
} else {
var valid = false;
var validator = $(this[0].form).validate();
this.each(function() {
valid |= validator.element(this);
});
return valid;
}
},
please help………………..
is the same as
|is the bitwise OR operatorhttps://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
Some examples of ORing numbers: