salient — 2014-05-21T18:53:51-04:00 — #1
Am doing a webpage for an assignment and am after something like a textarea that I can put name attributes against in order to process through jscript. At the moment can't find anything useful, is there such a beast? Used to vb and would use a label container there to achieve what I want.
Thanks in advance.
coboldinosaur — 2014-05-22T14:12:57-04:00 — #2
You can probably use a div with a contenteditable attribute. You could style it to look anyway you want. Submitting the data entered would require capturing the innerHTML in a variable with scripting an putting it in a form;appending it to an url or doing some kind of AJAX operation. Given the amount of work involved I don't really see much value to re-inventing the textarea, except as an academic curiosity.