Change the property of the native DOM node:
document.getElementsByName("submitform")[0].type = "button";
Do it with jQuery:
$("input[name='submitform']").prop("type", "button");
But remember that you cannot change input types in Internet Explorer 8 and below .
source share