[Javascript] double quotes inside a String

William T. Simmons tsimmons at employmentlawadvisors.com
Mon Dec 30 02:18:01 CST 2002


Try using either the single-quote character 'like this' or else escape the "
character \"like this\". For examples, see this URL:
http://www.dardenhome.com/js/x17294.htm
HTH,
Tommy Simmons
Employment Law Advisory Network
www.employmentlawadvisors.com

----- Original Message -----
From: "Sumit Jaiswal" <sumit at davlin.co.in>
To: <javascript at LaTech.edu>
Sent: Monday, December 30, 2002 2:34 AM
Subject: [Javascript] double quotes inside a String


> hi ,
> i have a query :
>
> How do we write a double quotes inside a String in JavaScript.
> Something like this :
>
>
> collegeId[i][j] = "(""+ "<%=college%>" + "",""+"<%=courseid%>"+")"";
>
> thank u,
>
> --
> Sumit Jaiswal
> Davlin Software Pvt Ltd .
> 2nd Floor , Punja Building,
> Lalbaugh , Mangalore
> Ph 0824-451001,451005
> --------------------------------------------------





More information about the Javascript mailing list