I am trying to submit my from using js but onclick is not working when used with input type button, even alert in the function is not working....
<input type="button" value="Register" id="org_reg_submit" class="reg_input" maxlength="100" onclick="org_reg_submit()">
function org_reg_submit(){
alert("hi");
document.getElementById("org_reg").submit();
}