+ 1

I making an ID Card generator. But it is showing ERROR.

I designing this program to make an ID generator but it is showing error. Please help me. https://code.sololearn.com/WDGJ29FHH1bH/?ref=app

5th Mar 2018, 2:57 PM
Mohd. Ahtesham
Mohd. Ahtesham - avatar
1 Answer
+ 9
put everything in function like this: $(function() { var nam = prompt("Please Enter Your Name.") ; var age = prompt("Please Enter your Age(In Years).") ; var hobb = prompt("Please Enter Your Hobby.") ; var abc = prompt("How many languages you have learnt ?") ; $("progress").attr("value",abc ); document.getElementById("nm").innerHTML = nam ; document.getElementById("ag").innerHTML = age ; document.getElementById("hby").innerHTML= hobb ; });
5th Mar 2018, 3:45 PM
Vukan
Vukan - avatar