Re: Can I change a p into a textarea?



On May 29, 8:36 pm, "samsli...@xxxxxxxxx" <samsli...@xxxxxxxxx> wrote:
Hi...

I've seen code which changes a paragraph into a textarea (to allow it
to be edited)...by creating a brand new text area, inserting that into
the dom at the right place, and deleting the paragraph from the dom.

I.e.http://www.quirksmode.org/dom/cms.html

What I'm wondering is: is there some way to simplify this? Can I
just tell the paragraph to become a textarea?

I'm pretty sure the answer is no...but I want to make sure there is no
way.

I believe the answer is no. The tagName attribute is readonly

http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614

Peter
.



Relevant Pages

  • Re: php in javascript
    ... Fletch wrote: ... But why if I pass the paragraph of text from onclick event on a checkbox, ... //to show text on a textarea ...
    (comp.lang.php)
  • Can I change a p into a textarea?
    ... I've seen code which changes a paragraph into a textarea (to allow it ... to be edited)...by creating a brand new text area, inserting that into ... the dom at the right place, and deleting the paragraph from the dom. ...
    (comp.lang.javascript)
  • Re: new lines in form
    ... > when someone write some text in form's textarea and then ... what can I do to "recieve" and store ... new lines with paragraph ... Prev by Date: ...
    (comp.lang.php)
  • Re: Machine-editable DOM/sexpr model specifying HTML output to be generated?
    ... an editable DOM, which starts out with a generic ABORT message ... does my purpose (second paragraph) sound reasonable ... generate HTML output to standard output live at the moment I call ... is to ask anyone with experience with any of those packages to ...
    (comp.lang.lisp)
  • Re: merge directory type doc with excel data source
    ... fields are not in a table, you will need an empty paragraph after the the ... then prints the second record serveral times on page 2, ... second record of name and address and continue inserting merge fields ...
    (microsoft.public.word.mailmerge.fields)