Auto size

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Hi,

I retrieve db-fields into <input type="text>'s (using ASP)
Does anybody know if it's possible to autosize an <input type="text"> depending on the size of the value retrieved.

Thanx in advanx,
Jack

Shakespeare: onclick || !(onclick)

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Jack,

document.formname.fieldname.size = '20';

It works for IE; I haven't tested with NN (takes too long to load and VH1 is showing top 100);

Vinny GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Thanks again Vincent.

Jack

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.