Is it possible to only get some properties from a form on submit?
<html><body>
<FORM name="foo" id="foo" onSubmit="dosubmit();return false;">
<INPUT type="text" name="s" id="s"><BR/>
<INPUT type="text" name="s2" id="s2"><BR/>
<select name="si" id="si">
<option>SomeOption_1</option>
<option>SomeOption_2</option>
<option>SomeOption_3</option>
</select><BR/>
<input type="submit" value="submit" id="postDataSubmit">
</FORM>
<script>
function dosubmit()
{
//Extract value of S2 and the chosen option (si) from the form here, and nothing else. Show them in an alert.
}
</script>
</body></html>
And by the way, if this is all you’re trying to do, then you don’t need a form. You can do this with any regular button: