/    Sign up×
Community /Pin to ProfileBookmark

Textareas vs tables.

Hi,

For textareas in dhtml what methods/properties are there?

Can I access one line of the textarea like I would one cell of a table?

Or can I at least be told what number the row I clicked is?

The reason I am asking is because textareas have scrolling while tables don’t.

If I can’t use a textarea as easily as a table, how can I put a scrollbar to a div please?

Thankyou

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 27.2007 — 1) http://www.w3.org/TR/html4/interact/forms.html#h-17.7

2) Yes, split the textarea value at 'nr' or 'n' depending on browser

3) Yes, but complex x-browser

4) tables can scroll

5)<div style="border:1px solid; height:5em; width:10em; overflow-x:hidden;overflow-y:scroll;">
Pitisa ape or nolit len schidepi est.
Ascepham psoth na phebuquores hemasmas. Asmam est.
Stum aguscue smapiphas, uri efisn odohius rhetebotis.
Meph fosun, aliquad sparim ile opipri eschesnant.
Lesp prasp gevipli pan enacat ma acrisnanis. Ivescum in rarispeus quadubospatis.
Lonebriant iplacrotis, rhiscr uvothore di elocri tronumotis.
</div>
×

Success!

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