Explain Codes LogoExplain Codes Logo

Javascript

Sorting options elements alphabetically using jQuery

javascript
prompt-engineering
functions
callbacks

What jsf component can render a div tag?

javascript
passthrough-elements
responsive-design
ajax

Contains case insensitive

javascript
prompt-engineering
functions
callbacks

Fastest method to escape HTML tags as HTML entities?

javascript
html-entities
string-prototype
regex-performance

Jquery's append not working with svg element?

javascript
svg
namespace
d3js

Angular ng-repeat in reverse

javascript
angular
filter
orderby

Remove all child elements of a DOM node in JavaScript

javascript
prompt-engineering
performance
event-handlers

Clearing localStorage in JavaScript?

javascript
localStorage
javascript-operations
web-development

How to avoid Decimal values in input type number

javascript
input-validation
javascript-features
accessibility

How to set default value to the input[type="date"]

javascript
date-formatting
javascript-libraries
client-side-scripting

How to check if the URL contains a given string?

javascript
prompt-engineering
functions
callbacks

How to append something to an array?

javascript
array-methods
spread-operator
performance-tips

How to merge two arrays in JavaScript and de-duplicate items

javascript
prompt-engineering
functions
callbacks

Append an element with fade in effect [jQuery]

javascript
method-chaining
animation
callbacks

How to add hours to a Date object?

javascript
date-prototype
custom-methods
immutability

Pass a JavaScript function as parameter

javascript
function-passing
callback-functions
async-programming

Submit form after calling e.preventDefault()

javascript
form-validation
event-handling
best-practices

Find the closest ancestor element that has a specific class

javascript
dom-traversal
polyfill
event-delegation

How do I find out which DOM element has the focus?

javascript
event-listeners
accessibility
focus-management

Jquery removeClass wildcard

javascript
prompt-engineering
functions
regular-expressions