[Solved] How do you add a " to a text field?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

[Solved] How do you add a " to a text field?

Post by Dale »

If you use:

Code: Select all

<input type=&quote;text&quote; value=&quote;&quote;&quote;>
the " doesn't show in the form... could someone tell me how to allow this to work.
Last edited by Dale on Tue Jul 19, 2005 3:32 pm, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Doesn't escaping it work?

Code: Select all

<input type=&quote;text&quote; value=&quote;\&quote;&quote;>

or....

<input type=&quote;text&quote; value='&quote;'>
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

Code: Select all

value='&quote;'
That worked. Cheers :D
Post Reply