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
精彩评论