input reset

input reset
HTML input reset Element
Setting the HTML input element's type attribute to "reset" will render a button which resets all of the components in a web <form>that it is part of.

HTML CODE EXAMPLE
<form action="parse_file.php" name="myForm" method="post">
  <p>Your Name: <br />
  <input type="text" name="senderName" /> </p>
  <p>Your Email: <br />
  <input type="text" name="senderEmail" /> </p>
  <input name="Submit" type="submit" value="Submit Info">
  or
  <input type="reset" value="Reset the Form">
</form>

 
Your Name:

Your Email:

 or 

 click here to code.

Attributes for this element:

type - specify the type of input
Value: "reset"

name - specify the input's name that your form parsing script will access
Possible Values: "short descriptive name"

value - specify the reset button's value
Possible Values: "a string"

disabled - specify that the input be disabled
Possible Values: "disabled"

global attributes - global core attributesSee: list of global attributes

New HTML5 attributes for this element:(applies 2014)

form - set a relationship between the input and a form
Possible Values: "a form's id attribute value"

autofocus - specify that the input receive focus when page is loaded
Possible Values: "autofocus"


Event handlers for this element:

global event handlers - global event handler attributesSee: list of global event handlers

0 Response to "input reset"

Post a Comment