Category "html"

Why this form is submitted also if this script forbids the submission?

I am absolutely new in JavaScript development and I have the following problem. I have a form containing two input tags where the user can insert two dates (som

Could you add two links in a <link href=""> tag in a single html page?

I wish to put an href that links to a CSS file and a website. How can i connect these two links into a working tag <link href="https://fonts.googleapis.com

Disable Animated PNG from animating in an html page

I'd like to stop an animated PNG from playing on my html page, and be frozen on the first frame. Any ideas to do this would be appreciated.

Angular 2: Get position of HTML element

I'm trying to implement a custom directive in Angular 2 for moving an arbitrary HTML element around. So far everything is working except that I don't now how to

Angular 2: Get position of HTML element

I'm trying to implement a custom directive in Angular 2 for moving an arbitrary HTML element around. So far everything is working except that I don't now how to

Html option selected disabled cause select required not working

<select name="status" required> <option selected disabled>status</option> I have set required attribute in html select. My first option set

input / button elements not shrinking in a flex container

When using input and button elements inside a flex container, the flex and/or flex-grow properties don't seem to do anything. Code that demonstrates my issue.

How can i hide dt if dd got empty value

I need to hide dt if dd got empty value. how can i do that? <dt class="col-sm-6 text-dark" >Subject</dt> <dd class="col-sm-6">{{$course_

Shift img few pixels up or down

This seems trivial, but I cannot find anything. I have a text and small image (icon) inside the text like this: <span>ask<img src=ask.svg height=16>

Streamlabs custom CSS twitch chat animate name and message seperatly

I want to customise my twitch chat overlay from Streamlabs so that the username of the person animates from the left while the actual message they send animates

How to add and remove classes in Javascript without jQuery

I'm looking for a fast and secure way to add and remove classes from an html element without jQuery. It also should be working in early IE (IE8 and up).

show alert when value is number

I need to show the alert box when the user typed the number in the input field <input type="text" class="only-text"> if (document.querySelector('.only-te

Hide one line in Sublime Text 3

I have one line in a html file containing a base64 representation of an image. This line spans thousands of lines in the editor, which is a huge hassle when alw

Javascript firing function twice and 1 of 4 functions not working

I'm creating a calculator in JavaScript. It is working, except for the add() function (sub, mult, and div work fine) and when I press "=" it sends the answer t

Responsive circles in a row with flexbox

I want to draw 4 circles, being all 4 flex-items, and I need them to scale with the container they are in. I have seen some solutions where padding-bottom is us

Alternative to datetime-local

Is there an alternative for that because Firefox and Internet Explorer are not supporting it... Example: <form> <input type="datetime-local"> </f

JavaScript code displaying in browser when form submitted, not the result of the script

I'm writing a basic calculator in JavaScript, and when I hit "=" on the html form it is returning the entire calculator.js, not the result. I'm not sure why th

Star rating with half star support

I am running into a problem rendering a star rating and was hoping I can get some extra eyeballs on my problem. I have the normal rating working just fine with

HTML to Image - vertical text

I'm using library TheArtOfDev.HtmlRenderer to convert html to image and then send it to printer. The Html I need to convert contains vertical text and rounded

hidden INPUT value not available in $_POST

I have a form that I use JavaScript to set the value of a hidden INPUT field which is the text of the OPTION selected. The $_POST captures the value of the OPT