Solved

about text field value in form

Posted on 2000-03-01
3
159 Views
Last Modified: 2010-04-09
hi...
this is my question:


<html>
<form>
<input type="text" name="name" value="watson">
</form>
</html>

until here,nothing special...
the word watson will be in the text field.
but watch this one:

<html>
<form>
<input type="text" name="name" value="d"r watson">
</form>
</html>

i want to write d"r watson inside the text field.
is there is a way to do it without using textarea and without writing d'r watson?

elad
0
Comment
Question by:eladr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
xabi earned 50 total points
ID: 2571904
Hi there:

change " into &quot;

this way:

.... value="wa&quot;tson">

xabi
0
 
LVL 8

Expert Comment

by:xabi
ID: 2571906
Or you can do it this way:

<html>
<form>
<input type="text" name="name" value='d"r watson'>
</form>
</html>

Xabi
0
 
LVL 1

Author Comment

by:eladr
ID: 2571918
thanx again...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question