Given:
var value = $this.text();
Where value equals: Phasellus pellentesque metus in nulla. Praesent euismod scelerisque diam. Morbi erat turpis, lobortis in, consequat nec, lacinia sed, enim. Curabitur nisl nisl, consectetuer ac, eleifend a, condimentum vel, sem.
When the user types in: Where value equals: Phasellus pellentesque metus in nulla. Praesent euismod scelerisque diam. Morbi erat turpis, lobortis in, consequat nec, lacinia sed, enim. Curabitur nisl nisl, consectetuer ac, eleifend a, condimentum vel, sem.!!!
The 3 !!!
I want JavaScript to Alert, allowing me to call a different function.
I'm trying to use:
if (/!!!$/.test(value)) {} but that doesn't seem to be working.
Ideas?