/    Sign up×
Community /Pin to ProfileBookmark

Why reset does not work?

I have code:

[code=php]
<form name=”d” action=”http://”>

<textarea name=”whatever”>
jhj
</textarea>

<img src=”image1.gif” onclick=”this.form.reset();” />
<noscript>
<input type=”reset”/>
</noscript>
</form>
[/code]

I do not know why it does not perform reset all fields?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@drhowarddrfineJan 23.2006 — You should ask this in the PHP forum.
Copy linkTweet thisAlerts:
@NogDogJan 23.2006 — You should ask this in the PHP forum.[/QUOTE]
Just because he used the [code=php] tags does not mean it's PHP. :) This is, in fact, a HTML issue; or, more likely, a JavaScript issue.
Copy linkTweet thisAlerts:
@NogDogJan 23.2006 — <i>
</i>&lt;form name="d" [color=red]id="d"[/color] action="http://"&gt;

&lt;textarea name="whatever"&gt;
jhj
&lt;/textarea&gt;

<i> </i> &lt;img src="image1.gif" [color=red]onclick="d.reset();"[/color] alt="reset"&gt;
&lt;noscript&gt;
&lt;input type="reset"/&gt;
&lt;/noscript&gt;
&lt;/form&gt;
Copy linkTweet thisAlerts:
@toplisekauthorJan 23.2006 — Thanks. It works now. I know it is more HTML question...
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...