Re: Can I change a p into a textarea?
- From: Peter Michaux <petermichaux@xxxxxxxxx>
- Date: Thu, 29 May 2008 21:10:58 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Can I change a p into a textarea?
- From: samslists@xxxxxxxxx
- Re: Can I change a p into a textarea?
- References:
- Can I change a p into a textarea?
- From: samslists@xxxxxxxxx
- Can I change a p into a textarea?
- Prev by Date: Trouble With Date Code
- Next by Date: Re: Trouble With Date Code
- Previous by thread: Can I change a p into a textarea?
- Next by thread: Re: Can I change a p into a textarea?
- Index(es):
Relevant Pages
|