I have a fluid layout and I need a text box to expand / reduce depending on the size of the parent container.
In CSS, it will look like this:
textarea{
width: 100%;
}
But this does not work with text areas.
How can I do this using javascript? I can get the width of the parent element, and they count the number of columns matching that width, but how do I know the size of 1 col (in px)?
source
share