Questions tagged as 'html5'

5
answers

How to make my input text have a separator of thousands and decimals in jquery?

I am trying to make a coin format for my input, which I want to be formatted automatically with thousand separator (",") and decimals; try with several plugins but they do not work for me. function addCommas(nStr) { nStr += '';...
asked by 09.09.2016 / 18:30
3
answers

Update text depending on selected values in a list * WITHOUT JAVASCRIPT *

At work we find an interesting problem: we have a page with a drop-down list that, when the selected option changes, updates the values of a series of elements from the values of a variable in JSON. HTML is something like this (simplified):...
asked by 08.06.2016 / 06:37
1
answer

Replace an html tag with jquery

When initially the website opens, a bootstrap modal appears asking to filter date. The date is filtered (example: April 2016). Click on the ACCEPT button and the magic happens, the server throws me the data to fill a whole dashboard from head...
asked by 29.09.2016 / 17:42
4
answers

Change color of HTML elements when holding down the mouse

I am trying to change the color of the elements, changing their class, while the mouse is held down, giving the effect of "painting". Doing it by mouse clicks I have it, here I leave the code: $(() => { $('table').on("click", "td...
asked by 28.02.2018 / 17:29
2
answers

Copy the contents of an element to the clipboard using JavaScript

How can I copy the contents of a div (or any element) to the clipboard using JavaScript / jQuery only without using Flash? For example, if I have this code: <p id="mi_parrafo"> Texto que quiero copiar </p> <...
asked by 07.12.2015 / 17:25
9
answers

CSS for alert () or confirm () JavaScript

I would like you to help me to give css to the alert() and the confirm() of javascript, so that my messages are something elegant, I do not want to opt for a modal only for confirmations, so if someone knew how to I realize I would...
asked by 14.08.2017 / 04:53
2
answers

How to create a responsive ball with css and html?

I have a doubt, and that is that for a class work I am trying to create as "a Christmas ball" that I turn, the thing is that the ball has already been made and turned, but there is a problem and that is that if the size I give it with em or wi...
asked by 06.11.2018 / 17:02
2
answers

CSS conditional on language

When a CSS stylesheet is included, you can specify the media query directly on the link tag with the condition that must be met for those styles to apply: <link rel="stylesheet" media="(max-width: 480px)" href="moviles.css" />...
asked by 26.09.2016 / 18:41
1
answer

what is the meta tag http-equiv="X-UA-Compatible" for?

I found the tag: <meta http-equiv="X-UA-Compatible" content="ie=edge" /> I know it works for compatibility, I found this page: link but I would like know if someone can give me a little more information on how it works. Thanks     
asked by 18.08.2017 / 22:46
4
answers

How to validate a field in html5 without reloading the page?

I have a form and in this I have two INPUTS , these are required so I use the HTML5 REQUIRED property but it only works if I put a BUTTON strong> and this makes my page recharge when doing submit but I do not send it directly but I use A...
asked by 10.02.2017 / 03:33