It's been a long time since I code stuff with validation. My problem today is that I am trying to validate a field in which it must have 10 or more than characters. When you press ok, the jQuery function should trigger.
function pathvalid() {
var str = document.getElementById("pathenabler");
var n = str.value.length;
if (n < 10) {
document.getElementById("demo").innerHTML = "The path that you have entered is either invalid or incorrect. Please input a valid path.";
}
else {
document.getElementById("demo").innerHTML = "Not Good day!";
$('.actionenabler') .removeClass('chkbox');
}
}