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 may try using a regular expression:
var url = 'youtube.com/watch?v=FhnMNwiGg5M';
var isyouTubeUrl = /((http|https):\/\/)?(www\.)?(youtube\.com)(\/)?([a-zA-Z0-9\-\.]+)\/?/.test(url);
var regexp = /^(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?(?=.*v=((\w|-){11}))(?:\S+)?$/;
var matches_array = video_url.match(regexp);
if(matches_array == null)
{
alert("Enter youtube url");
return false;
}