Uncaught TypeError: $(...).valid is not a function

I am getting error on below line

$(“#btnSave”).click(function () {
if (!$(“#formRoom”).valid()) {
return;
}
SaveRoomData();
});
});

I can’t find .valid() in the jQuery API. I do see a plugin but that would need to be added separately.

https://jqueryvalidation.org/valid/