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 tuncerPosted May 24, 2016, 6:24 AM
you can use search or indexOf, check these links:
Khargesh RajputPosted May 24, 2016, 7:05 AM