Solved

' in the value of a text input

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

810 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