Class selector should start with .
dot: document.querySelector('.trigger-overlay');
.
MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Class_selectors
More Related Contents:
- How to do this mouse over effect in jquery?
- My JS is not working (chat application)
- Get the Highlighted/Selected text
- How do I check if file exists in jQuery or pure JavaScript?
- Make cross-domain ajax JSONP request with jQuery
- How do I create a link using javascript?
- How to fire an event on class change using jQuery?
- Check with jquery if div has overflowing elements
- Set attribute without value
- How do I catch jQuery $.getJSON (or $.ajax with datatype set to ‘jsonp’) error when using JSONP?
- Generate unique number within range (0 – X), keeping a history to prevent duplicates
- Show loading image while $.ajax is performed
- jQuery Ajax requests are getting cancelled without being sent
- Why does appending a to a dynamically created seem to run the script in the parent page?
- How to select all checkboxes with jQuery?
- How to convert unordered list into nicely styled dropdown using jquery?
- Call js-function using JQuery timer
- IP to Location using Javascript
- How can I toggle the element that is clicked and hide all others?
- jQuery validate plugin on DIV
- Detect browser character support in javascript?
- Count instances of string in an array
- how to get selection inside a div using jquery/javascript
- How can I make a button redirect my page to another page? [duplicate]
- Get Correct keyCode for keypad(numpad) keys
- Change placeholder text
- Prototype equivalent for jQuery live function
- hide div if clicked outside of it [duplicate]
- How to submit checkboxes from all pages with jQuery DataTables
- creating highchart with ajax json data