Covert Input Button tag to Button Tag - HS Form
Sun Sep 24 2023 14:02:20 GMT+0000 (Coordinated Universal Time)
Saved by
@sagarmaurya19
$(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);
});
content_copyCOPY
Comments