开发者

comma delimit javascript/asp line

What is the correct way to comma delimit this line, I keep getting javascript errors:

<a href="javascript:doSubmit(<%= pound & rs("AdvertiserID")%>, <%=rs("AdvertiserName")%>)">

Its Friday, what can I say...

The <%=rs("AdvertiserName")%>) can have single quotes in it, such as Dillard's开发者_开发知识库 and needs to be delimited, how would I add them? so I would end up with doSubmit(5432, "Dillard's")?

Thanks, R.


I think you need to swap the positions of your final double quote and close parenthesis:

)" instead of ")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜