I have used jQuery .contain()
method in my project it is working fine in Firefox but gives error in Google Chrome. My code looks like this:
if (txtsearchvalue.contains('-')) {
var Arraytxtsearchvalue = [];
Arraytxtsearchvalue = txtsearchvalue.split('-');
}
Uncaught TypeError: Object
17-331-250251-92
has no method 'contains'
In Chrome 47 error message is:
Uncaught TypeError: txtsearchvalue.contains is not a function