Code:
function validation() {
var _qid = "";
var _msg = "";
var alertValidation = "";
// Note, this is just so it's declared...
$("tr.optionAndAnswer").each(function() {
});
if (alertValidation != "") {
alert(_msg + alertValidation);
return false;
}
return true;
}
the jQuery code doesn't apepar to be your issue. yoru validation fucntion, doesnt actually do anything. The code in red, does nothing. the rest of th efunction, the way it is written will always return true as you are never changing the value of alertValidation