Using javascript onSubmit. want to pass in variables from HTML into function called by onSubmit...can't even get this to compile no less run it,
Compiler says that the vars are not resolved, e.g.
<FORM name="myForm" method="POST" action="Controller" onsubmit="myFunc("'+myId+'","'+myOrderNumber+'");">
How to fix this syntax to resolve these vars: myId and myOrderNumber from the HTML below? Also the syntax is still a bit off too for parentheses.
Compiler says that the vars are not resolved, e.g.
<FORM name="myForm" method="POST" action="Controller" onsubmit="myFunc("'+myId+'","'+myOrderNumber+'");">
How to fix this syntax to resolve these vars: myId and myOrderNumber from the HTML below? Also the syntax is still a bit off too for parentheses.