Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to check if string contains certain word in JScript
Nicker
May 24 2016 5:58 AM
459
Reply
y Code
var x = document.getElementById("searchbox").value;
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Empty Text Box Validation Not Working
Javascript is not seeking the right amount of time