Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

' in the value of a text input

Posted on 2002-05-14
4
Medium Priority
?
147 Views
Last Modified: 2010-04-09
Hi,

Is there a way to put a ' and " inside the value of a input text field?

<input type=text value='hello's there, hello"s there'>
<input type=text value="hello's there, hello"s there">

Neither option above works.  The value string will get truncated.

Is there a way around this?

Thanks in advance!
0
Comment
Question by:boseani
  • 3
4 Comments
 
LVL 5

Expert Comment

by:nfroio
ID: 7009188
Have you tried using either the ISO Latin code of: &#38;

or, the symbolic: &amp;

nfroio
0
 
LVL 5

Accepted Solution

by:
nfroio earned 800 total points
ID: 7009196
DoH! I think you are not meaning the Ampersand.. sigh... tis still early, and me brain ess no function righty yet..

solly..

you'll still need symbols, but alas, these, not those:

for ( ' ) &#039;

for ( " ) &#034;


nfroio
0
 

Author Comment

by:boseani
ID: 7009230
Excellent!!!
0
 
LVL 5

Expert Comment

by:nfroio
ID: 7009236
Thank you boseani, glad that I could help...

nfroio
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

782 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