111
rated 0 times
[
115]
[
4]
/ answers: 1 / hits: 19185
/ 11 Years ago, thu, september 12, 2013, 12:00:00
I have a web application. In one of the pages, I go all over the HTML element IDs wether one of them ends with a specified string or not. Every JS functions work on the page but endsWith function doesn't work. I really didn't understand the matter. Can anyone help?
var str = To be, or not to be, that is the question.;
alert(str.endsWith(question.));
The above simple JS code doesn't work at all?
More From » javascript