Category "html"

If <meta charset=“utf-8”> means that JavaScript is using utf-8 encoding instead of utf-16

I have been trying to understanding why the need for encoding/decoding to UTF-8 happens all over the place in JavaScript land, and learned that JavaScript uses

CSS Semi-Transparent box

I want a semi transparent div for better readability of the site's content, over my background image. The div has rounded corners, and I am having trouble combi

Pulling edited text from summernote textarea

I have a list of canned emails in a database. "Thanks for becoming a member", "Thank you for your purchase its on the way" - stuff like that. I am using Bootstr

How to create bootstrap slider with text

I want bootstrap slider like the image. I have the default bootstrap slider style but cannot type text like the above image and a black transparent black back

Moving a value into an html form field

I am very new to JavaScript and would like to know how to go about the following. I have a form that I am using for entry to a fishing contest. It contains fiel

Slick JS as Swipe Tabs

I've found this code snippet : https://codepen.io/hani_ouni/pen/LZxKxG in it works perfectly on codepen.io but when I downloaded it and tried to run it on my

Insert "/" in MM/YYYY textbox on keypress event

I want to enter a "/" when user enters MM(2 digit) so it will be like MM/YYYY. I have done similar for credit card number input which insert a space after 4 di

Regarding "link" tag in HTML what is the most used value for the "rel" attribute after "stylesheet"?

I know "stylesheet" us used the most but I was wondering if other values are used and how much are they used. I personally did not encounter other values beside

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

My button needs to update after an input field

I have the following problem, I made a form using HTML with some input fields. I also made the submit button disabled using the following JS code: if(document

Use a DIV as an input

Sorry if this question is very basic, but I'm trying to get back into programming and I'm stuck with this. I want to have text input into a <div> in HTM

JavaScript IE double submit with form.submit()

I am experiencing difficulties with IE (8, 11) double submit which is triggered by JavaScript code: this.disabled=true; form.submit(); return false; Sentence

Can the <link> tag be used to prefetch audio files?

I can across rel="prefetch" attribute of <link> tag. On MDN, they just showed prefetching CSS files. More specifically: Link prefetching is a browser mec

Flexbox scrollable columns

I'm struggling to make the below design work. What I want is: Fixed height header fixed width sidebar Sidebar and content to always fill down to the bottom of

ES2015 import doesn't work (even at top-level) in Firefox

These are my sample files: <!DOCTYPE html> <html> <head> <title>Test</title> <script src="t1.js"></script> </h

How to add predefined colors to <input type="color">?

According to MDN, the list attribute can be used for <input> elements of type color to provide a list of predefined colors. That page also indicates that

How to insert text into a textarea using JavaScript without messing up edit history?

Basically what i want is if a user selects some text in a textarea and presses ctrl + b then the text within the selection should be surrounded by stars. so ba

Bootstrap collapse on radio button

I have found this LINK on Stack overflow and what i want to achieve is that when user clicks on a radio button that div stays in that state. For example if i

How to move an drag and drop item to a certain position, when located over canvas?

I am working on a Tablet-environment with draggable objects. The drag & drop works, it is even possible to drag several objects at once, when implemented.