$(window).load(function() { setTimeout(function() { var submitBtn = $('.wrapper .hs-form .actions > input[type="submit"]'); submitBtn.parent().html(submitBtn.parent().html().replace(/input/g,"button")); $('.wrapper .hs-form .actions > button[type="submit"]').text(submitBtn.attr('value')); }, 100); });