The strange phenomenon of the oninvalid event!

oninvalid event, which is triggered when the input tag check is invalid, and prompts an error message

.

it is strange that when there is more than one input in form, you can block error messages in the following ways:


    </div>
</form>

<script>
var form = document.querySelectorAll( "form" )[0];

form.addEventListener( "invalid", function( event ) {
    event.preventDefault();
},true);

form.oninvalid=function(e){
    return false;
}    
    
</script>
    
</body>
</html>
Mar.15,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c799-2c32f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c799-2c32f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?