0
i want function if change text "Appointment dates are not available." make alret
<div class="col-sm-5 container"><h2 class="row fontweightNone alertBox notification marginBottomNone upperCase" style="padding:20px 10px;">Appointment dates are not available.</h2></div>
2 Respuestas
+ 2
HTML
<p>
Enter your name: <input type="text" id="fname" onchange="myFunction()">
</p>
JS
document.getElementById("fname").addEventListener("change", myFunction);
function myFunction() {
var x = document.getElementById("fname");
alert(x.value);
}
+ 1
As we told you in the question with the same content that you deleted for some reason, it would be helpful if you put the complete code on SoloLearn playground and explain when and how the element disappears