|
Posted by Webrickco on 07/25/07 18:50
On 25 jul, 19:31, tomb <t...@technetcenter.com> wrote:
> I am generating a form dynamically through AJAX. The form and the data
> come in very nicely, but my reset button doesn't do anything. There are
> 3 other buttons that call javascript functions - they work fine. Just
> the reset button seems to be dead. The form is inserted into a Div
> using AJAX. Here are my form details:
>
> <form id="clientform" name="clientform">
> <table>
> <tr>
> <td>Name:</td>
> <td>
> <input id="txtCompany" type="text" value="Company
> Name" size="65" name="txtCompany"/>
> </td>
> </tr>
>
> ... some more labels and input text boxes.....
>
> <input id="add" type="button" onclick="addThisClient(1,4);" value="Add" name="add"/>
> <input id="update" type="button" onclick="updateThisClient(1,4);" value="Update" name="update"/>
> <input id="delete" type="button" onclick="deleteThisClient(1,4);" value="Delete" name="delete"/>
> <input type="reset" value="Clear"/>
> </table>
> </form>
>
> Can you see any reason why the reset button would be dead?
>
> Tom
I do not use reset button, but what if instead you put something like
<input id="reset" type="button" value="Clear"
onclick="document.getElementById('txtCompany').value = ''; [...]"/> ?
Navigation:
[Reply to this message]
|