@ symbol for strings in jQuery
Posted
by anilca
on Stack Overflow
See other posts from Stack Overflow
or by anilca
Published on 2010-05-06T11:39:16Z
Indexed on
2010/05/06
11:48 UTC
Read the original article
Hit count: 147
if (confirm('<%=Ns1.Ns2.MyClass.GetResourceText("DeleteConfirmationMessage")%>')) { /* something to do...*/ }
I have a jQuery expression as above. But the return value of GetResourceText method is a very long string. So my page renders the function like below:
if (confirm('
Are you sure lablabla? If you delete this lablabla...
lablabla...
')) {
Because of this my jQuery functions do not work. Is there a symbol for jQuery like @ that we use in C#?
© Stack Overflow or respective owner