Hi,
I have a table with two form elements:
<table>
<form method="post">
<tr>
<td>Matter Code</td>
<td><input type="text" name="ClientCode" size="7" maxlength="6" autocomplete="off">
/ <input type="text" name="MatterNumber" size="4" maxlength="4" autocomplete="off">
</tr>
<tr>
<td> </td>
<td colspan="1"><input type="submit" value="Search"></td>
</tr>
</form>
</table>
I want to make it so when the submit button is clicked it combines the two fields also putting a '/' between them an passed that new string to a function called checkCode.
I've tried different things but am I close with:
<form method="post" onSubmit="checkCode(ClientCode.value + '/' + MatterNumber.value)">
The idea is if you type in '123456' in one box and '7890' then the function will receive '123456/7890'.
Thanks very much
Ed
I have a table with two form elements:
<table>
<form method="post">
<tr>
<td>Matter Code</td>
<td><input type="text" name="ClientCode" size="7" maxlength="6" autocomplete="off">
/ <input type="text" name="MatterNumber" size="4" maxlength="4" autocomplete="off">
</tr>
<tr>
<td> </td>
<td colspan="1"><input type="submit" value="Search"></td>
</tr>
</form>
</table>
I want to make it so when the submit button is clicked it combines the two fields also putting a '/' between them an passed that new string to a function called checkCode.
I've tried different things but am I close with:
<form method="post" onSubmit="checkCode(ClientCode.value + '/' + MatterNumber.value)">
The idea is if you type in '123456' in one box and '7890' then the function will receive '123456/7890'.
Thanks very much
Ed