In Jquery i want to check the specific url from youtube alone and show success status and others i want to skip by stating it as not valid url
var _videoUrl
You can check if URL contains the word "http://www.youtube.com" using .indexOf()
.indexOf()
var url = 'http://www.youtube.com/channel/UChh-akEbUM8_6ghGVnJd6cQ'; if (url.indexOf('http://www.youtube.com') > -1) { alert( "true"); } else { alert( "false"); }