Solved

' in the value of a text input

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

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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 …

910 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

25 Experts available now in Live!

Get 1:1 Help Now