/    Sign up×
Community /Pin to ProfileBookmark

annoying textarea property – this happening to anyone else?

For some unbeknownst reason, my [I]textarea[/I] starts out with a carriage return already inside. This is rather annoying to me. I had to modify my onSubmit function to account for this carriage return/new line.

Anyone else experience this problem?

I’ve got my code working,
but here it is if you are interested.

Hope all is swell!

-Ernie D

<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function checkForm(){

if (document.email.Dx.value == (“n” || “”)){
alert(“please type a diagnosis and then hit submit”);
return false;}
else {return true;}
}

// End –>
</script>
</HEAD>

<BODY>
<form METHOD=POST ACTION=”CGIprogram” name=”email” onSubmit=”return checkForm()”>
<input type=”hidden” name=”redirect” value=””>
<input type=”hidden” name=”recipient” value=”[email protected]“>

<input type=”hidden” name=”subject” value=””>

<input type=”hidden” name=”this_Slide_is” value=””>

[B]<textarea NAME=”Dx” ROWS=”12″ COLS=”21″ WRAP=”virtual” defaultvalue=””>
</textarea>[/B]

</form>
</BODY>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Ernest_DiNinoauthorMar 15.2004 — Hey, I just figured it out (after wasting more than 3 hours and losing more than a few strands of hair!)

I had a space in my code between <textarea> and </textarea>

Sorry for the dumb post, but maybe it will help other people who are having the same problem.

Later,

Ernie D
×

Success!

Help @Ernest_DiNino 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...