How do I submit a form with javascript when there's an input named submit?

SabsBlettysat

New Member
Normally \[code\]form.submit()\[/code\] will work,but if there's an input named \[code\]submit\[/code\],\[code\]form.submit\[/code\] will be the very input and you can't submit the form with the above code.So is there a way to submit the form in this case(if I don't change the input's name)?
 
Back
Top