Explain Codes LogoExplain Codes Logo

Javascript

Jquery click event not working after append method

javascript
event-delegation
jquery
best-practices

Find if a textbox is disabled or not using jquery

javascript
jquery
javascript-8
event-handlers

How to get the current date or/and time in seconds

javascript
timestamp
date-now
time-zone

Javascript add leading zeroes to date

javascript
date-formatting
locale-specific-formatting
zero-padding

Escape text for HTML

javascript
html-escaping
xss-prevention
html-entities

How to add conditional attribute in Angular 2?

javascript
prompt-engineering
interview-preparation
attribute-binding

Jquery vs document.querySelectorAll

javascript
vanilla-javascript
performance
best-practices

How to prevent form resubmission when page is refreshed (F5 / CTRL+R)

javascript
form-validation
csrf-protection
client-side-validation

How to change value of object which is inside an array using JavaScript or jQuery?

javascript
map
functions
best-practices

How to Implement DOM Data Binding in JavaScript

javascript
data-binding
event-driven
reactive-patterns

Javascript for...in vs for

javascript
loop-types
javascript-loops
iteration-techniques

Binding arrow keys in JS/jQuery

javascript
event-handling
key-binding
keyboard-events

How can I have IS NULL condition in TypeORM find options?

javascript
typeorm
find-options
null-checks

Jquery - Create hidden form element on the fly

javascript
prompt-engineering
functions
callbacks

How can I tell if a browser supports ``

javascript
feature-detection
browser-support
input-type-date

How do I POST a x-www-form-urlencoded request using Fetch?

javascript
fetch-api
async-await
error-handling

Remove insignificant trailing zeros from a number?

javascript
floating-point
precision
number-formatting

Is there a null-coalescing (Elvis) operator or safe navigation operator in JavaScript?

javascript
prompt-engineering
optional-chaining
nullish-coalescing

How do you use the ? : (conditional) operator in JavaScript?

javascript
ternary-operator
javascript-best-practices
code-legibility

For..in loops in JavaScript - key value pairs

javascript
for-in-loops
javascript-iteration
object-entries