Explain Codes LogoExplain Codes Logo

Best Articles — Page 201

Sort array by firstname (alphabetically) in JavaScript

javascript
sorting
localecompare
array-methods

Css scale height to match width - possibly with a formfactor

html
responsive-design
css
javascript

Is it possible to GROUP BY multiple columns using MySQL?

sql
group-by
aggregate-functions
distinct

How to add/update an attribute to an HTML element using JavaScript?

javascript
attribute-manipulation
cross-browser
jquery

Get current URL with jQuery?

javascript
url-manipulation
jquery
history-api

Alter TABLE to add a composite primary key

sql
composite-key
foreign-key
data-integrity

What browsers support HTML5 WebSocket API?

html
websocket
real-time
cloud-support

How do I get the current index/key in a "for each" loop

java
for-each
index-tracking
java-8

Converting double to string

java
string-formatting
decimalformat
error-handling

Get selected text from a drop-down list (select box) using jQuery

javascript
dropdown
jquery
best-practices

How to force a web browser NOT to cache images

html
cache-control
http-headers
web-development

How to get a thread and heap dump of a Java process on Windows that's not running in a console

java
heap-dump
thread-dump
visualvm

Change select box option background color

html
css-styling
browser-compatibility
accessibility

How can I get the index of an object by its property in JavaScript?

javascript
find-index
method-chaining
browser-support

Update multiple rows with different values in one query in MySQL

sql
case
join
upsert

How can I change or remove HTML form validation default error messages?

html
form-validation
error-messages
browser-compatibility

Sql Server Insert if not exists

sql
race-conditions
merge
performance-optimization

Split string to equal length substrings in Java

java
string-splitting
regex
guava

Programmatically navigate using React router

javascript
react-router
navigation
hooks

Sql multiple column ordering

sql
multiple-column-sort
order-by
case-statements