Questions tagged as 'html5'

4
answers

How do I insert the value of a variable within an HTML attribute using pure Javascript

I'm trying to insert a value that I'm getting from the url inside the HTML attribute, as follows: I've done this function function urlId() { document.getElementsByTagName("BUTTON")[0].setAttribute("data-channel-external-id", "qs.id");...
asked by 05.02.2017 / 02:23
2
answers

Pick Selected UL Element

I need to get the Name only of the Element that I clicked on, but when I search for textContent all the li appears <li class="folder folder-open Selected"> TesteNfseSPO <ul> <li class="file">TesteNfseSPO.sln...
asked by 13.12.2016 / 13:24
1
answer

Upper menu layout break in different browsers

Well, I'm having problems on my top menu, how big is the size of the black bar that is marking the menu area and the area size of each <li> of my menu. In Google Chrome it's all good, then when I go to test in other browsers everyth...
asked by 15.11.2016 / 04:12
1
answer

Image Thumbnail through URL [closed]

I want to do this: There is a field where the user inserts the URL of an image, and wanted to paste this url into the field, a thumbnail appears next to (or below) the field, similar to what FB does, where you paste the URL url of the video i...
asked by 26.01.2017 / 22:43
1
answer

How to put a link in a background-image?

I have a div that has these characteristics: div#circulo{ height:200px width:200px background-image: url(minhaimagem.png); background-size:200px; } The image in question is a centralized circle with a transparent background. So in my h...
asked by 22.10.2016 / 19:58
2
answers

Print without losing css

I have the following page which is to print an OS report, it is exactly the way I need it, but when I print this, I lose the formatting of the css, how do I print without losing the css layout <?php //CONEXAO header('Content-Type: text/h...
asked by 02.02.2017 / 18:50
1
answer

Attach the Header and Footer to each print page [duplicate]

I would like to know how to set a Header and a Footer on each page to be printed , making content stay between them [Edit] respecting header space and footer . I would also like to take advantage of it and ask how does the div's 'zebras'...
asked by 14.10.2016 / 15:21
2
answers

Receive data in JavaScript

I have a very vile doubt about JavaScript, but I believe you will understand me, since I am a newcomer to the language. Next: I created a page in html where the user will have 5 options of services to choose, right? Right! When the user...
asked by 26.10.2016 / 00:11
1
answer

How to use the Oninput attribute?

I'm remembering some things in HTML and I came across the Oninput attribute. I know this attribute is for calculations, but I do not know how to use it. I already searched the net, but there is nothing in Portuguese.     
asked by 24.11.2016 / 23:08
1
answer

Filter Element Option

How do I get the option object with Jquery specifically this: $('#nome_responsavel').blur(function () { var id = $('option[value="'+$('#nome_responsavel').val()+'data-toggle=p"]').attr('id'); alert(id); }); <script src=...
asked by 26.07.2016 / 20:17