跳至内容
菜单
此问题已终结
1 回复
6849 查看

I need to display a python variable in javascript loop. But when I try to show it, doesn't work:

document.write("<p><strong> A l'attention de :"+${l.name}+"</strong><br/> Tél : </p>");

Help me please!

形象
丢弃
最佳答案
                    

Print that value in div section with id, and call that value in javascript.

like 

${l.name}
${l.name}



varlanme=document.getelementbyid('lname')
document.write("

A l'attention de :"+ lname +"
Tél :

");



形象
丢弃
相关帖文 回复 查看 活动
1
6月 25
4000
1
9月 19
10845
3
12月 23
46057
4
9月 16
9087
0
3月 15
3978