here is html and php code i like to pass video from my database to this via jquery on click action
i try to do something like this but it fail
jquery code

jQuery("#player").val(data["video"]);

<p>
 <label style="width:87px">Video:</label>
                     <div id ="show_image2" style= "">

  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player" name="player" width="500" height="300">
  <param name="movie"              value="player.swf" />
  <param name="allowscriptaccess"  value="always" />
  <param name="allowfullscreen"    value="true" />
  <param name="flashvars" value="file=<?=API?>images/ &image=softppint.jpg"/>
  <embed
                        type="application/x-shockwave-flash"
                        id="player2"
                        name="player2"
                        src="player.swf"
                        width="500"
                        height="300"
                        allowscriptaccess="always"
                        allowfullscreen="true"
                        flashvars="file=<?=API?>images/ video &image=softppint.jpg"
                        />
</object>                            <span id='video_filename'><?=$video?></span>  <br>

                            <a class="delete_img" id="delete_btn2" onclick="deleteImage('<?=$video?>',2,'v');">Delete Video   </a>
                            <br/><br/>
                            </div>
                            <input type="hidden" name="video" id="video"  value = "<?=$video?>">
                            <div id="video-loc">
                            </div>         

jQuery("#player").val(data["video"]);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.