What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-30 11:05:03
jquery get multiple input values by name
<input name="titles[]"> <input name="titles[]"> <button>submit</button> // click handler function onClick(event) { var titles = $('input[name^=titles]').map(function(idx, elem) { return $(elem).val(); }... Add solution -
Javascript 2021-09-30 02:12:04
event bubbling in javascript
<script> form.onclick = function(event) { event.target.style.backgroundColor = 'yellow'; // chrome needs some time to paint yellow setTimeout(() => { alert("target = " + event.target.tagName + ", this=" + this.tagN... Add solution -
Other 2021-09-23 20:30:02
request optional permission in chrome extension
document.querySelector('#my-button').addEventListener('click', function(event) { // Permissions must be requested from inside a user gesture, like a button's // click handler. chrome.permissions.request({ permissions: ['tabs'], origins: ['http://... Add solution -
Javascript 2021-09-04 11:35:03
angular google maps
Step 1: Creating new project Create a new project using command ng new gmaps-ng5 Step 2: Install Google Maps types for typescript support. Run command npm install --save @types/googlemaps Step 3: Link Google Maps JavaScript CDN inside index.html <scrip... Add solution
Best helpers
Ranking is empty