Solved

about text field value in form

Posted on 2000-03-01
3
154 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now