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>

20th Nov 2021, 11:47 AM
khemis Nabil
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); }
20th Nov 2021, 12:01 PM
SoloProg
SoloProg - avatar
+ 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
20th Nov 2021, 12:33 PM
Lisa
Lisa - avatar