Solved

' in the value of a text input

Posted on 2002-05-14
4
139 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 200 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

20 Experts available now in Live!

Get 1:1 Help Now