So, I want to use the jQuery function to collect the URL from the REL link and pass it to the element.
Collecting REL and sending it to it is not a problem ... but what is needed to start the functions of loading and playing elements from jQuery?
Here is what I still have:
$(function(){ $('a.componentLink').click(function() { event.preventDefault(); var vidURL = $(this).attr('rel'); $('#myVideo > source').attr('src', vidURL); $('#myVideo').load(); $('#myVideo').play(); }) });
ATM, it does not play ... I believe jQuery does not have access to the playback function ... but there must be a way.
javascript jquery html video
Benjamin allison
source share