Avatar of Whing Dela Cruz
Whing Dela Cruz
Flag for Anguilla asked on

Slush on text

Hi experts, How to determine "/" and put on an alert message if found some slush in a text. Thank you!

<!Doctype Html>
<Html>
<body>
<input id="A1" value="Schoo/l">

<button onclick="CheckTheSlush()">Check</button>

<script>
function CheckTheSlush()
{
  var x = document.getElementById("A1").value;
  //alert: x is found with slush
}
</script>
</body>
</Html>

Open in new window

JavaScript* HTML 5

Avatar of undefined
Last Comment
Whing Dela Cruz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
gmsetzer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Whing Dela Cruz

ASKER
Thanks a lot gmsetzer, its working very well. God bless!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck