General discussion

Locked

Reset Not responding

By sp_bannore ·
I am using one dropdownlist to select cities
and search button and reset button

when i use tab and set focus to reset button and hit enter Key .It dont respond
I have used following code in html view
in Head:
<script language="JavaScript" >
<!--
function ResetForm()
{
document.Form1.txtCity.value ='' ;
document.Form1.ddlStatus.selectedIndex=0;
}
//-->
</script>

In Body:

<input type="button" id="button2" runat="server" value="Reset" onclick="ResetForm()" NAME="button2" >

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums