开发者

jQuery and Smarty function escape double quotes

Smarty generate radios that uses double quotes how to escape output in jquery?

jQuery("#append2").html开发者_StackOverflow社区("<td>{html_radios name='stype' options=$stype selected=1 labels=false}");

thanks


Does the following escape not work?

jQuery("#append2").html("<td>{html_radios name=\"stype\" options=$stype selected=1 labels=false}");


Try to use

jQuery("#append2").html("{literal}<td>{html_radios name=\"stype\" options=$stype selected=1 labels=false}{/literal}");

Literal documentation

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜