Skip to Content
Menu
This question has been flagged
1 Reply
6873 Views

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!

Avatar
Discard
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 :

");



Avatar
Discard
Related Posts Replies Views Activity
1
Jun 25
4114
1
Sep 19
10910
3
Dec 23
46157
4
Sep 16
9087
0
Mar 15
4066