Bonjour ,je n'arrive pas a trouvé le probléme aider moi svp
voici le code :
Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype>
<html>
<head>
<title> Afficher/masquer</title>
<script type="text/javascript">
function check_range(){
var value = document.getElementById("price1").value;
var paragraph_list=document.getElementByTagName("p");
 
var first_paragraph = paragraph_list[0];
 if (value >=80){
   display="block";}
 
 else{ display="none";}
alert(display);
first_paragraph.style.display= display;
}
</script>
</head>
<body bgcolor="lightblue">
<h1> Afficher/masquer en réponse</h1>
<form>
entrer un prix:<input type="number" id="price1"
min="1" max="100" oninput="check_range();">
</form>
<p style= "display:none;">Avertissement :vous êtes à 20% de 
la limite.</p>
</body>
</html>