how to use ready event html without jquery code example
Example 1: document ready without jquery
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});
Example 2: Disable Multiple Form Submits with Vanilla JavaScript
var form = document.getElementById('formID');
var submitButton = document.getElementById('submitID');
form.addEventListener('submit', function() {
// Disable the submit button
submitButton.setAttribute('disabled', 'disabled');
// Change the "Submit" text
submitButton.value = 'Please wait...';
}, false);