Using jQuery:
$('#play-pause').click(function(){
if ( $('#video-over').css('visibility') == 'hidden' )
$('#video-over').css('visibility','visible');
else
$('#video-over').css('visibility','hidden');
});
More Related Contents:
- Using jQuery, how do you find only visible elements and leave hidden elements alone?
- Difference between jQuery’s .hide() and setting CSS to display: none
- Input type="text" with select functionality after clicking on Input type="text"
- How to dectect objects' overlaping situations in javascirpt? [closed]
- jQuery .animate function not responding properly
- Reloading a single div in an html page [closed]
- How to invoke animation when redirection in jsf?
- fixing slider on my website [closed]
- Can I use HTML tags in the options for select elements? [duplicate]
- How to build simple jQuery image slider with sliding or opacity effect?
- How can I disable a browser or element scrollbar, but still allow scrolling with wheel or arrow keys?
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- make html text input field grow as I type?
- jQuery Drag/Resize with CSS Transform Scale
- Padding or margin value in pixels as integer using jQuery
- Creating a select box with a search option
- jQuery position DIV fixed at top on scroll
- How to Determine if ::before is applied to an element?
- Can you have a JavaScript hook trigger after a DOM element’s style object changes?
- Bootstrap modal: background jumps to top on toggle
- How to define the css :hover state in a jQuery selector?
- jQuery in Chrome returns “block” instead of “inline”
- How To Include CSS and jQuery in my WordPress plugin?
- Extracting text from a contentEditable div
- Prevent iOS bounce without disabling scroll ability
- How do I make an area unclickable with CSS?
- How can I dynamically highlight strings on a web page?
- Detect if dropdown navigation would go off screen and reposition it
- Iframe inherit from parent
- Bootstrap Dropdown menu is not working