Questions tagged as 'html'

3
answers

How to make a submit by sending completed data in the form to an email?

<div id="mainDiv"> <div id="marca"> <img class="imagens" src="media/img/titulo.png" alt="Titulo"> </div> <div id="anaMaria"> <img class="imagens" src="media/img/fundoCadastroDois.png"...
asked by 06.02.2014 / 02:21
2
answers

Can I use the header / footer tags inside the main / section tag?

I would like to know if you can, within the element <main> , or <section> , put the tags <header> and <footer> . For example: <section> <header>topo da section</header>...
asked by 29.08.2018 / 03:00
2
answers

How can I show the value of an attribute as text using CSS?

I want to show the value of an attribute as text. <div title="12:56pm"> <span data-measureme="1"> <span>hi</span> </span> </div> Example that does not work in jsFiddle . Something like...
asked by 23.12.2013 / 16:18
2
answers

Select element based on data-id attribute

How do I get the id in JavaScript which, in HTML, is data-id="2" ? <ul> <li data-id="1" id="e1">Elemento 1</li> <li data-id="2" id="e2">Elemento 2</li> <li data-id="3" id="e3">Elemento 3&l...
asked by 03.07.2018 / 18:12
2
answers

How to force download of local information in the browser? [duplicate]

I'm trying to do something like this: $('button').on('click', function() { obj = {}; $('pseudoform').find('input,textarea').each(function() { obj[$(this).attr('name')] = String($(this).val()); }); json = JSON.st...
asked by 03.07.2017 / 20:47
2
answers

Check if button is disabled - JavaScript

I have this button, and I need to check with JavaScript if it is disabled, but I do not know how to do that. Here's the HTML: <button type="button" title="Finalizar Compra" class="btn btn-proceed-checkout btn-checkout no-checkout" disabled=...
asked by 11.07.2017 / 16:05
4
answers

How to make an alert with animated echo?

How to make a more animated echo, I'm using the following PHP code, which contains a alert() of Javascript: session_start(); $credito = $_GET['credito']; $soma = @$_SESSION['valor_total'] += $_GET['valor']; if($soma > $credito){...
asked by 04.02.2014 / 19:21
4
answers

I can not make an onchange event to change a photo when we select the select field

When I select a select option it would appear that a different image appears in the img I created, but it is not working. HTML code <select id="produtos" onchange="mudaFoto()"> <option value="">Selecione o Produto</option&...
asked by 08.03.2014 / 21:25
3
answers

My code does not abort the submission of the form as it should

I made a form, and before sending I check if the person entered the user and the password. I put this in the submit event, but it does not seem to work. The code: <script> subimitar = function(){ if(document.getElementByNam...
asked by 05.04.2014 / 00:25
2
answers

Rotation check in javascript

Is there any way to check the rotation of a div in javascript , for example checking style left is offsetLeft , could someone tell me how the rotation would look?     
asked by 28.02.2014 / 00:14