Category "html"

How to set the min/max attribute on input type=date

I'm having some problems to set a minimum and a maximum YEAR with HTML5 date input. Here is my code: <input required="required" min="1900-01-01" max="2099-0

How to get the width of a line of multi-line text use Javascript

Line f.e.: <p style="width: 300px;">asdasd sa das d asd a sd as das dasdasdasdasd saddasdasdasdasd asdasdsd</p> The width of P is 30

Java: Unable to locate status button

I am working on a feature file in Selenium and I am having issues trying to read the status button. If the status symbol is set to "Invited," it is supposed to

Don't Want Include Tag's Stylesheet to Mix With Current Page's

I have an include tag in dashboard.jade to include my header.jade file, but the header.jade file has its own stylesheet and when I run it, dashboard.jade's styl

What is aria-label and how should I use it?

A few hours ago I read about the aria-label attribute, which: Defines a string value that labels the current element. But in my opinion this is what the t

How to change the length/position of text-decoration:underline?

I would like to have some words underlined where the underline can be a different length. I would also like to be able to change the position of the underline

PHP/HTML: Creating A SubMenu

I have this filtering feature on my program. It is in the form of a drop-down list. I'm currently using the Select-Option method to display the options on my dr

align three buttons horizontally (left, center, right)

html <div class="download-buttons"> <div class="download-button-wrapper"> <div id="dd" class="desktopBackgro

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