Explain Codes LogoExplain Codes Logo

Javascript

Change the image source on rollover using jQuery

javascript
rollover
image-preloading
responsive-design

Selecting the last element in a JavaScript array

javascript
array-methods
performance-optimization
javascript-features

Error: Can't set headers after they are sent to the client

javascript
error-handling
middleware
async-await

How to remove text from a string?

javascript
regex
string-manipulation
functions

Scrolltop animation without jquery

javascript
scrolling
animation
performance

Web workers without a separate Javascript file?

javascript
web-workers
javascript-optimization
async-programming

Jquery get all input from specific form

javascript
form-handling
jquery
web-development

How to focus on a form input text field on page load using jQuery?

javascript
prompt-engineering
functions
callbacks

Change :hover CSS properties with JavaScript

javascript
responsive-design
event-listeners
css-variables

How can I display a modal dialog in Redux that performs asynchronous actions?

javascript
redux-thunk
async-handling
modal-dialogs

Show an image preview before upload

javascript
responsive-design
best-practices
file-reader-api

How to play a notification sound on websites?

javascript
prompt-engineering
audio-engineering
browser-compatibility

Get everything after the dash in a string in JavaScript

javascript
string-manipulation
functions
performance

Jquery, Clear / Empty all contents of tbody element?

javascript
jquery
dom-manipulation
ajax

How to tell if a JavaScript function is defined

javascript
callbacks
functions
robustness

Self-references in object literals / initializers

javascript
self-references
object-literals
getters

Can I get a div's background-image URL?

javascript
prompt-engineering
performance
functions

Jquery Event for user pressing enter in a textbox?

javascript
event-handling
jquery
keypress

Convert boolean result into number/integer

javascript
type-coercion
truthy-falsy-values
conditional-statements

How to get an element by its href in jQuery?

javascript
prompt-engineering
functions
selectors