开发者

jQuery and Smarty function escape double quotes

开发者 https://www.devze.com 2023-01-29 04:39 出处:网络
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 labe

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

精彩评论

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