Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Text Area + Edit text

Status
Not open for further replies.

gorgered

Programmer
Dec 13, 2005
24
US
Hi,

I am using HTML Text Area, inside the text area I disply some text in HTML with some span tags inside it. As it is a HTML text area the user cannot see those tags and I do not want the user to edit or delete those tags form the text area.

What is the better way to handel this issue.

Ex: Raw HTML text looks like this
Code:
<p>What is your name <span class="fill-in" id="name">_______</span> ?</p>

but on the HTML Text area the output would be like below and I do not want the user to mess with span tags.
Code:
What is your name ________ ?

Any Ideas????

Thanks
Gorge
 
Don't put the span tags in the textarea - use regexp, or other search/replace method to add them in afterwards. The string is so simple, it wouldn't be too hard at all.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top