Your solution shows the issue here — play
is not a jQuery function but a function of the DOM element. You therefore need to call it upon the DOM element. You give an example of how to do this with the native DOM functions. The jQuery equivalent — if you wanted to do this to fit in with an existing jQuery selection — would be $('#videoId').get(0).play()
. (get
gets the native DOM element from the jQuery selection.)
Related Posts:
- JavaScript Loading Screen while page loads
- Click button copy to clipboard
- How to make html table vertically scrollable
- How to make Bootstrap carousel slider use mobile left/right swipe
- bootstrap 3 navbar collapse button not working
- jQueryUI dialog width
- Random background images CSS3
- Fully responsive HTML5 video
- How do I remove a box-shadow effect from an element when another element is hovered?
- Slide right to left?
- Accordion scrolls page too low after clicking on the title [closed]
- Getting click on item to open closest relevant element (popup) with jQuery
- jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser
- jQuery function not working in WordPress but works in jsfiddle
- Site images are fixed in front of my site content [closed]
- change the icon of a custom post type in WordPress to use twitter boostrap
- can’t make jQuery work (change image on time interval) [closed]
- How do I link a JavaScript file to a HTML file?
- How can I scroll to an element using jQuery?
- Bootstrap Dropdown menu is not working
- Change Background color (css property) using Jquery
- JavaScript runtime error: ‘$’ is undefined
- Set timeout for ajax (jQuery)
- Use images like checkboxes
- Force a default browser on my android phone using a simple html shortcut page
- Set selected option of select box
- Bootstrap Dropdown menu is not working
- Bootstrap Dropdown menu is not working
- jQuery.addClass not working
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Why is the jquery script not working?
- How to make a simple image upload using Javascript/HTML
- How to Show External website inside another page without iFrame? [closed]
- Display XML content in HTML page
- How to center image in carousel
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- Bootstrap carousel not sliding
- Can Twitter Bootstrap alerts fade in as well as out?
- How to get height of div in px dimension
- How to display raw JSON data on a HTML page
- Clear form fields with jQuery
- How to call a webservice method from an html page [javascript] with out refresh the page
- Javascript – ERR_CONTENT_LENGTH_MISMATCH
- Why is jquery show() not working in example
- jQuery scrollTop() method not working
- $(document).ready(function() is not working
- Show div #id on click with jQuery
- jQuery find element by data attribute value
- How to use aria-expanded=”true” to change a css property
- How to set “style=display:none;” using jQuery’s attr method?
- jQuery UI Datepicker not working
- Automatically decrease font size for long words
- Best approach for loading a sidebar Only if the screen max-width is >900px?
- Twitter Bootstrap Use Collapse in Custom Post Type
- Stylizing external SVG files with jQuery and CSS
- Gravity list field override and adding javascript [closed]
- Show post in slider
- Add a class to posts in increments of 2
- Override theme style with other CSS on a specific page
- How can I make this custom menu work?
- Remove WordPress scripts
- How to make an WordPress element sticky? [closed]
- WordPress Comments – Rich Text
- WordPress Multiple Navigation bars
- show/hide div with simple jQuery script [closed]
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- What is the propre way to include jQuery UI Datepicker’s CSS in plugin?
- Adding a Calculator to a WordPress Page
- Adding a slide toggle on WordPress
- Superfish Menu Not Loading
- Problem Implementing parallax in header of bp-default theme
- specifying relative file paths in WP with jQuery requests not working
- How to keep HTML form field that is conditional hidden with javasript hidden after page reload?
- click event to unhide something after ajax not firing
- Is it OK combined wp-include js, jquery, css? [closed]
- Insert a Featured Video
- How to use JQuery Marquee in WordPress?
- jQuery Drill Down iPod Menu FOUC and Selecting Current page
- Add other class content with reference class value
- Overriding inline !important CSS with Javscript code snippet with media query
- JQuery script working locally on desktop, not working on WordPress + Divi
- How to make jquery slider to start afresh [closed]
- Unable to use Datepicker in a table when inserting a row
- jQuery Validation plugin and Bootstrap 4 CSS classes
- How Do I change Markup of a link in WordPress
- How can publish my bootstrap created table ( huge amount of data) on my word-press theme?
- Lightbox scroll page down on iPhone
- how to allow download after newsletter subscription?
- How can I add a new lib path without call each one on the header?
- How can I add the Post ID to Class Name in Jquery?
- WP Media Uploader modal conflicts with Bootstrap modal
- :first-child applying to all links [closed]
- Possible jquery / library conflict in plugin usage
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Hide input field when second input field is in focus
- Drop Down Category Menu Not Working
- Element works, but not on wordpress site [duplicate]
- controlling the showing and hiding of the website logo
- How do I add Javascript and CSS files into WordPress?
- Contact Form 7 – Submit Form not working After Ajax Request [closed]