I have a JavaScript code like as follows
if (jQuery("#" + formId).valid()) {
status = true;
} else {
status = false;
}
If my form is valid according to jquery validation then the status will be true else it will be false. So far it is fine.
IDE suggests to code like
status = !!jQuery("#" + formId).valid();
Can someone explain me what does this do? If it is correct how? I have tried to understand but unable to make it.