Hello, I&
#039;m adding a js validation to the bug report page and it&
#039;s working ok but for the description field (when WYSIWYG is selected).
This is my validation code:
bug_report_advanced_page.php in the FORM tag
onSubmit="return checkform(this)"
And the function looks like:
function checkform(form) {
var alertmsg = '';
if (form.summary.value == '' {
alertmsg += "- Fill The Summary field\n";
}
if (form.description.value.length == 0 || form.description.value == null || form.description.value == "") {
alertmsg += "- Fill The Description field\n";
}
...
...
if( alertmsg ) {
alert("Please Check The Following Before Proceed:\n" + alertmsg);
return false;
}
}
if I fill the description field and click submit(for the first time) it&
#039;ll recognize it as not filled
and ask to fill it,but if u click the submit button again it will recognize it correctly...and so on
Any ideas?