I have a productlist and i want to scarch the productlist by input parameter. so I was using contains for scarching the input string in the productlist. its working fine with web page. but when i open the same page in mobile web page its not working. and giving an error that 'contains' in not define.
if(productlist[i].name.toLowerCase().contains(input_val.toLowerCase()))
    --my business logic--
after that i  have tried with indexOf then its working fine in both cases.
if(productlist[i].name.toLowerCase().indexOf(input_val.toLowerCase()) !== -1)
    --my business logic --
what is the problem for .contains??
 
     
    