/    Sign up×
Community /Pin to ProfileBookmark

hightlight of a text box

i want to make a text in a text box something like “highlight”
what i actually mean is : like someone marked with a mouse from the start of the text box to the end of it the letter
so its seem’s like they were selected!
how can i do it?
thanks inadvance
peleg

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JDec 28.2003 — Do you mean something like this?

<form>

<input type="text" style="background:red">

</form>
Copy linkTweet thisAlerts:
@pelegk1authorDec 29.2003 — what i mean is that only the text is marked not all of thetext box|!
Copy linkTweet thisAlerts:
@PittimannDec 29.2003 — Hi!

originally posted by pelegk1:
...so its seem's like they were selected![/QUOTE]
Why should it SEEM to be selected?? Just select it - document.formname.formfieldname.select()...

Cheers - Pit
Copy linkTweet thisAlerts:
@Mr_JDec 29.2003 — Then as pit says ..............

document.formname.formfieldname.select()
×

Success!

Help @pelegk1 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.16,
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,
)...