Skip to Content
Menu
This question has been flagged
1 Atsakyti
7129 Rodiniai

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!

Portretas
Atmesti
Best Answer
                    

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 :

");



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 25
4459
1
rugs. 19
11294
3
gruod. 23
46649
4
rugs. 16
9089
0
kov. 15
4402