Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7874659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:50:55+00:00 2026-06-03T02:50:55+00:00

I have a link watch video when users click on it, they should be

  • 0

I have a link ” watch video ” when users click on it, they should be able to see video playing in iPhone and other mobiles player. I had hide the video by using display:none but how I can run the video upon click ?

My code is here

<p class="links right_links"><a href="#!" onClick="playVideo();">Watch Video Review!</a>
<script>
    function playVideo(){
        $('#mPlayer').show().play();
       //document.getElementById('mPlayer').play();
      }
 </script>
 <video style="display:none" id="mPlayer" controls width="150" src="/imgs/vidrvws/<%=request.querystring("prod")%>.mp4" poster="inc/vscript/poster.png" height="150"></p>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:50:56+00:00Added an answer on June 3, 2026 at 2:50 am

    You can access the DOM element in jQuery by using the .get( 0 ) method passing in the index of the item you want. In your case index of 0 will work fine since you used an ID selector.

    Updated: Opps, I forgot to add the .get( 0 ) to the code snippet as described above.

    Try this..

    $('#mPlayer').show().get( 0 ).play(); instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can we watch youtube video in android app? I mean if we have link
I have some code where you click on a link and jQuery opens a
Is there a way, in CSS, I can make an element click-through-able. I have
I have this youtube link for example: http://www.youtube.com/watch?v=3aICB2mUu2k And I need with PHP to
hi i have a webpage which allows users to enter the youtube video and
I used to embed YouTube video's via a link I have in a database.
Does someone have a regular expression that gets a link to a Youtube video
I have link that calls a function when clicked: <a href=javascript:spawnMenu(this); id=link1>Test1</a> To make
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same
I have a link ( anchor ) tag in a table cell on every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.