From 318e83cb3586a4649a81c2edd50a1e272481c822 Mon Sep 17 00:00:00 2001 From: capush2 <olivierga@hotmail.com> Date: Fri, 27 Nov 2020 15:14:34 -0500 Subject: [PATCH] =?UTF-8?q?Exemple=20de=20boucle=20pour=20placer=20des=20?= =?UTF-8?q?=C3=A9l=C3=A9ments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/membres.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/html/membres.html b/html/membres.html index 8c3923a..cbf7e42 100644 --- a/html/membres.html +++ b/html/membres.html @@ -53,8 +53,16 @@ <button class="tablinks" onclick="openTab(event, 'inscription')">Mon panier</button> </div> <div class="tealBackground"> - + <div id="test"></div> </div> </div> </body> -</html> \ No newline at end of file +</html> +<script> + var test = document.getElementById('test'); + + + for (var i = 1; i < 15 ; i++) { + test.innerHTML += "<div id=\"button_"+i+"\">" + i + "</div>"; + }; +</script> \ No newline at end of file -- GitLab