Thursday, 15 March 2012

How to reset ONLY a single input tag in a formfield with just html5 -



How to reset ONLY a single input tag in a formfield with just html5 -

i tried next illustration , aim accomplish if press reset button, field in current line reseted, possible html5 , no jquery/ javascript ? ideas welcome :)

<form action="fieldset_legend.htm"> <fieldset> <legend>absender</legend> <label for="vor">ihr vorname:</label> <input id="vor" size="40" maxlength="40" name="vorname" type="text"> <input type="reset" for="vor" value="reset"> <label for="nach">ihr zuname:</label> <input id="nach" size="40" maxlength="40" name="zuname" type="text"> <input type="reset" for="nach" value="reset"> </fieldset> </form>

i don't believe there way avoid javascript in case input 'reset' reset elements in form.

reset: button resets contents of form default values.

input elements

html5 input reset form-fields formfield

No comments:

Post a Comment