Category "html"

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.

Preloading Google Fonts

Light House audit is suggesting that I preload key requests, specifically the two google fonts that I'm using in my React app. A Light House member suggested us

Resetting all fields in a form when it is opened

I have two forms that lies under two tabs in a portlet. When I click on tab 2 I want all fields in that form to be empty. I don't want a button. I tried with: f

HTML: insert image at select tag

Question i want to make my select tag like google's one this is mine This is my code `<script > function format(state) { if (!s

How to get ckeditor textarea value using jquery?

I am using ckeditor on textarea but i could not get data from it. Code : <textarea name="DSC" class="materialize-textarea"></textarea> <script&

How to make list items of one UL with fixed height be displayed as columns?

For example, i have such a list: 1 2 3 4 5 6 7 8 and i want it to look like 1 5 2 6 3 7 4 8 So, how to make it work without any javascript? I have such

How to repeat html5 audio

Please read fully before answering (thank you): I am wanting to seamlessly repeat a track (say 10secs) a given number of times (say 3 times) smoothly by: Extr

Can I use SVG within a customized the Azure AD B2C user interface?

I am building a customized Azure AD B2C user interface. I have included a SVG tag within my page. <body> <div class="container"> <d

Avoid user interaction on "disabled" table row

I've got an HTML table which has some of its rows 'disabled'. I'd like to show it clearly to the user, so I apply a blur filter to the tr, having a table like t

Display html table in email using Python

Basically, I am trying to display a html table in outlook email body. When i tried to get a preview of the table in here, it looked nice and fine (i.e. the colu

How to add a picture element in javascript with multiple source tags

I am trying to do this <picture> <source srcset="img/awesomeWebPImage.webp" type="image/webp"> <source srcset="img/creakyOldJPEG.jpg" type="

Ionic Video Mute Attribute Ignored

I am having a weird issue where the mute tag on a video element is being ignored. <video #media playsinline webkit-playsinline loop muted [src]="video

Adding custom CSS and JS to Shopify

I am working on getting vertical tabs for a page on Shopify, using the 'Atlantic' theme. As this theme does not have vertical tabs by default, I have used the

PrimeNG calendar clear current/today date when the user selects some other date on the calendar

I'm using p-calendar in my app to take input from the user for a particular time. The calendar works fine. However even when I click on some other date on the c

SVG element width and height set in html but appearing as 0 0 in inspector

I have an svg rect like this: <svg class="legend-square"> <defs> <pattern id="pattern1" width="3" height="3" patternunits="us

HTML tbody only is only one header column width

I have a problem in HTML. I want to make a table with a fixed header and a scrollable body. The body (tbody) is composed of the rows of the table, and the head

Sticky navbar disappearing

My sticky navbar had disappeared and text is over the video which should start below it. https://github.com/shanegibney/stackoverflowStickynavbarIssue There i

Assistance with Error: Start tag body seen but an element of the same type was already open and Error: Stray end tag head

I have been having an issue with my code to get it validated with no errors on the w3c validator site. I was wondering if any of you could possibly help me. I e