Board Thread:Code Review/@comment-29457887-20160327083649/@comment-29457887-20160327110000

UltimateSupreme wrote: You have an error in your code. is not defined. Use something like  in its place. This would solve the  problem var url = $(this).attr('href'); var id = url.substring(url.indexOf("v=") + 2); Here. fixed.