Any problem with this codes?The button not working at all if i put few actions inside the function,if i just put one (document.) action inside the function,it works.
<script type="text/javascript"> function fnSubmit (){
var form1Content = document.getElementById("form1").innerHTML;
var form2Content = document.getElementById("form3").innerHTML;
document.getElementById("toSubmit").innerHTML=form1Content+form2Content;
document.forms.toSubmit.submit();
}
</script>
<input type="submit" name="submit" value="Insert" onclick="fnSubmit()"/>