I nee s llittle Search Help

I nee s llittle Search Help
0.0 0

#1

I am trying to loop through an array to see if the array’s string start with the user’s input value, but sratsWith does not appear to be working. I do things in sections so this is the only section I am working on, Any suggestions? Thanks.


#2

Hi,
I do my work in Notepad++ and the actual code in on line 22 when I make a call to alert(streamers.startsWith(searchTerm) ); Thanks,


#3

Maybe you meant
alert(streamer.startsWith(searchTerm));
instead of
alert(streamers.startsWith(searchTerm));


#4

Hi Kevonmedia,
You are correct. It works now! Thanks.