Explain Codes LogoExplain Codes Logo

Javascript

How to add `style=display:"block"` to an element using jQuery?

javascript
prompt-engineering
event-handlers
css-properties

How to create a <style> tag with Javascript?

javascript
browser-compatibility
dynamic-styles
css-rules

Ajax request returns 200 OK, but an error event is fired instead of success

javascript
ajax
error-handling
debugging

Adding data attribute to DOM

javascript
prompt-engineering
functions
callbacks

How to apply !important using .css()?

javascript
prompt-engineering
functions
callbacks

Can you call ko.applyBindings to bind a partial view?

javascript
prompt-engineering
knockoutjs
view-models

Onclick open window and specific size

javascript
popup-blockers
cross-browser-compatibility
responsive-design

How to check if a string contains text from an array of substrings in JavaScript?

javascript
prompt-engineering
functions
callbacks

Uploading both data and files in one form using Ajax?

javascript
ajax
form-data
file-upload

How to use Checkbox inside Select Option

javascript
javascript-features
event-listeners
dom-manipulation

Are double and single quotes interchangeable in JavaScript?

javascript
string-notation
template-literals
json

Removing HTML element styles via JavaScript

javascript
prompt-engineering
functions
event-delegation

Jquery $("#radioButton").change(...) not firing during de-selection

javascript
event-delegation
javascript-best-practices
jquery

How to initialize an array's length in JavaScript?

javascript
array-initialization
javascript-array
array-from

How to reset <input type = "file"> in Angular

javascript
form-control-methods
angular-forms
file-input-reset

Managing jQuery plugin dependency in webpack

javascript
webpack
javascript-plugins
dependency-management

Convert UTC date time to local date time

javascript
date-conversion
time-zone
moment-js

Table fixed header and scrollable body

javascript
sticky-header
scrollable-body
css-tricks

Setting "checked" for a checkbox with jQuery

javascript
jquery
checkbox
javascript-advanced

How to add a class to a given element?

javascript
prompt-engineering
functions
performance