Questions tagged as 'html5'

1
answer

jQuery does not use the HTML5 dataset on date?

When modifying a certain initial value of data of jQuery, I noticed that the value of dataset is not modified. Then I wrote the following test: HTML: <div data-value="initial value" id="div-test-1"></div> <di...
asked by 11.02.2015 / 18:38
6
answers

Input type="password" with the eye to show password

I need to put a <input type="password"> with that password reveal eye, however it has to work as follows: User clicks on eye and loosens the characters again. Here is a sample photo:     
asked by 04.12.2015 / 16:56
3
answers

With CSS to cut a text? Type a cut text effect or broken font?

I was wanting to create a text to use as <h2> in the site, I wanted the form of text to be maintained I do not want an image, because I want to keep the text semantic and accessible. Is there any way to get this result with CSS...
asked by 10.10.2018 / 20:50
1
answer

Download text from a textarea as a file without server-side language

I need the user to click a button to download the text text as a JSON file, for example: User clicks the button - > Begins downloading file textarea.json An example that best expresses: downloadFile(document.querySelector('...
asked by 21.04.2014 / 14:45
4
answers

I need to block ctrl + v in a text box

I want to create an input type="text" that does not allow anything to be pasted into it. You do not need to have any alert or anything, just do not allow the paste.     
asked by 27.02.2014 / 01:58
2
answers

Record audio and stream live

I need to record audio and stream live, I discovered that with HTML5 and JavaScript / jQuery it is possible and that it has plugins that can help me. I'm using one of them, the MediaStreamRecorder and I'm recording and streaming live to myself...
asked by 01.06.2014 / 06:16
6
answers

How to limit an input of type Number to only 3 characters?

I'm having a problem with a variable of type integer , because maxlength="" works only with string and needs to be barred, but it's type Number . I think you need the javascript, if anyone knows the solution would appre...
asked by 23.03.2017 / 15:07
1
answer

Why does an internal alignment of a button button differ from a link a, even using the same class?

Well, I created a class called .btn , where I wanted to use it for both button and a . So I forced some things in this class to reset the original style of both button and a . For example, in a I removed...
asked by 01.08.2018 / 14:48
2
answers

How to show only "x" characters in a div?

Hello, I'm developing a system where I will be publishing, but I would like that, in each publication, it shows "x" characters, and going from that value, it shows a button labeled "Show more", just like Facebook . If anyone knows how to do t...
asked by 01.02.2016 / 00:59
3
answers

Select elements that contain a particular "date" attribute

On the page there are several elements with data attributes. To avoid going to add CSS classes to the elements, making the page code denser, I would like to select elements by the name of the data attribute. Example <div id...
asked by 14.01.2014 / 15:33