Click here to Skip to main content
15,921,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am creating video list dynamically. My code is here:
PHP
while($row=mysql_fetch_array($res)){
   $post=$row['post'];
   $link=$row['link'];
   $HTML.='<div>';
   $HTML.='<video ><source src="'.$link.'" /source>'.'<p>'.$post.'/<p></video>';
   $HTML.='</div><br/>';
}

And I have a video player in my page:
HTML
<div id="leftcolumn">
                            <video id="myvideo" controls='true' style="width:820px;height:360px">

                            </video>
                        </div>

Now I need a Ajax or Jquery code for play a selected video in #myvido. How can I do this please help me.
Posted
Updated 25-Apr-13 7:38am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900