Whing Dela Cruz
asked on
Count the slush
Hi experts, I want to count number of slushes in the input text. Any help please!
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<input type="text" id="T1" value="Dog/Cat/Chicken//">
<button onclick="return iCount()">Count slush</button>
<script>
function iCount()
{
var X = document.getElementById("T1").value;
alert() //Count the slushes on the input text, T1
}
</script>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER