I won’t say much nonsense, I will just post the code to you. The specific code is as follows:
//The parameters are the objects corresponding to the message prompt layer, usually the objects in the form //Special attention: When using type=radio or type=checkbox in the extension method, because the object of the message prompt layer is set to obj.parentElement.parentElement, the object passed in should also be the second-level parent node function hiddenMessageDiv(obj){var div = obj.Eos_Message;if(div!=null){//Remove this object from the message array to prevent the occurrence of ordinary Js errors after deleting the tag object, causing the general Js error to be reported by bugEos_All_Message.remove(obj);//Trigger the click event of the prompt layer div.click();}}//Add to add multiple-choice and multi-check boxes to custom verification //Universal radio button verification examples: extAttr="validateAttr=type=radio;"function f_check_radio(obj){//Get the Radio group of the same name var radioNames = $names(obj.name);var len = radioNames.length;for(var i=0;i<len;i++){if(radioNames[i].checked){var div = obj.parentElement.parentElement.Eos_Message;if(div!=null){//Remove the error prompt divdiv.hidden();}return true;}}//The purpose of getting parentElement.parentElement is to let the prompt message be displayed at the end f_alert(obj.parentElement.parentElement,"This item is required"); return false;}//Universal multi-select button verification use example: extAttr="validateAttr=type=checkbox;"function f_check_checkbox(obj){//Get the checkbox group of the same name var checkboxNames = $names(obj.name);var len = checkboxNames.length;for(var i=0;i<len;i++){if(checkboxNames[i].checked){var div = obj.parentElement.parentElement.Eos_Message;if(div!=null){//Remove the error prompt divdiv.hidden();}return true;}}//The purpose of taking parentElement.parentElement is to let the prompt message be displayed at the end f_alert(obj.parentElement.parentElement,"This item is required");return false;}The above is the code of the hidden error prompt layer of EOS based on JS introduced to you. I hope it will be helpful to everyone!