1. try giving it an ID 2. try doing what Liam said, *before* you create the element. That's a hack that 'forces' the browser to acknowledge the existence of the tag 3. it helps if you make sure your page is in standards mode
On Aug 11, 7:01 am, quiKe <ponuntamaentuv...@gmail.com> wrote: > Hi again. > > But i insert the video tag into the code: > > for (var j = 0; j < bloque.video.length; j++) { > Bloque += '<li id="' + j + '" ><video src="' + > bloque.video[j].ruta + '" alt="' + bloque.video[j].alt + '" > controls="' + bloque.video[j].controls + '" autoplay="' + bloque.video > [j].autoplay + '" /></li>'; > } > > So the video tag is in the DOM. The problem is jquery doesn´t > recognize the tag, so you can not control it as a img tag for example > (for searchs, manipulation...). Any idea to how to do it?. > > Thanks. > > On Aug 7, 3:30 pm, Liam Potter <radioactiv...@gmail.com> wrote: > > > try adding > > > document.createElement(video); > > > before your jquery script > > > quiKe wrote: > > > tried (doesn´t work) but i wanted to know if maybe i was on a mistake. > > > > On Aug 7, 12:52 pm, Liam Potter <radioactiv...@gmail.com> wrote: > > > >> try it? > > > >> quiKe wrote: > > > >>> Hi, do you know if it is possible to use selectors for a video tag? > > >>> For example: > > >>> $(this).find('div.misc').find('ul').addClass('thumb-fila').find > > >>> ('li').find('video').each(function(){ > > >>> }); > > > >>> to capture the video tags on a li? > > > >>> Thanks