Solved

about text field value in form

Posted on 2000-03-01
3
153 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
Comment Utility
Hi there:

change " into &quot;

this way:

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

xabi
0
 
LVL 8

Expert Comment

by:xabi
Comment Utility
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
Comment Utility
thanx again...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

744 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

12 Experts available now in Live!

Get 1:1 Help Now