y Code
var x = document.getElementById("searchbox").value;
if (x.contains('jo')){
if (x.contains('jo')){
}
When I run the code I got this error
Error: Object doesn't support property or method 'contains'
apparently I cant use contains, is there other method for it?

ali tuncerRank #1,499 · 1.1K reputationPosted May 24, 2016, 2:24 AM EDT
you can use search or indexOf, check these links:
Khargesh RajputRank #616 · 3.9K reputationPosted May 24, 2016, 3:05 AM EDT