How to create login to display in table score ? (Java script)
<script> var credit = 20; var symboles = ['♣', '♥', '♠', '♦'] jQuery(function(){ $('input[type="button"]').click(function(){ var $t = $(this); $t.hide(); if(credit < 1) { alert("No more Credit"); return false; } $(".img").hide(); var $check = 0; var $last = -1; //////// function getValue(){ var retVal = prompt("Votre Nom : ", "Saisir Votre Nom"); document.write("Vous etes : " + retVal); } $(".img").each(function(k,v){ var x = Math.floor((Math.random() * 3)); if($last == -1) { $last = x; } if($last!=x) { $check = 1; } $(this).html(symboles[x]); $(this).delay( 500 ).fadeIn( 300 ); }); if($check==0) { credit +=5; } else { --credit; } $(".score").html(credit); setTimeout(function(){$t.show();},500) }) $(".score").html(credit); }) This is my web jackpot simple. I want create form with js for asking name and display his name to table score. How i can do ? Tks a lot