Questions tagged as 'html'

1
answer

Error doing Javascript sum

I have a calculation script that I adapted from another page. There, all right, but in that, even conferring the same ids and the like, does not work. I took the essentials of the screen, to demonstrate what I have done so far. $(".real")....
asked by 28.02.2018 / 14:22
4
answers

Change button link according to option

Have a good afternoon. How do I make a function in javascript to get the value of the input and according to the input redirect to the link I want. Turma 1 - Option 1 Turma 2 - Option 2 Link turma1 ex: google.com.br Link turma2 ex: yahoo.c...
asked by 27.02.2018 / 15:46
1
answer

Mask for CPF or CNPJ without using plugins

I managed to make simple masks for phone fields, zip codes, etc., etc. But I wanted a mask to automatically detect and format a field for CPF or CNPJ in the same input, but that was preferably pure html / javascript, with no plugins at most usin...
asked by 22.02.2018 / 19:11
2
answers

Favicon not showing

Good afternoon, I would like the help of the university students, I created a website and put a favicon in the same folder as the pages that call it, but the favicon is not being shown: <link rel="shortcut icon" type="image/png" href="fa...
asked by 22.02.2018 / 20:42
3
answers

Required fields

<label for=""><h5><strong>Dia da Semana</strong></h5></label> <select name="Dia"> <option value="0">Selecione o Dia</option> <?php $servername = "xxx.xxx.xx.xx"; $us...
asked by 14.02.2018 / 18:22
1
answer

Place floating footer over another div

I have the following html structure: <body> <div id="gmap"></div> <footer> //conteudo do footer </footer> </body> I want to put the div gmaps occupying the entire screen and the footer flo...
asked by 14.03.2018 / 19:05
1
answer

Run form when you click a browser button

I have a form with an input file, and what I want to do is the following. WhenIchooseafileandhit"OPEN", I need to submit my form by clicking "OPEN".    My form. <form class="form5" method="POST" enctype="multipart/form-data">...
asked by 11.03.2018 / 16:38
1
answer

JavaScript function does not execute when I select a radio button

I created a Javascript function that needs to be executed every time one of the buttons on the radio button is selected. But nothing happens. Here is the code: <script> document.write( ) function mostraCampoArray(...
asked by 11.03.2018 / 13:10
1
answer

Hover with scale only in parent div

I want to apply a div where I change the background to purple and the texts and image to white until there works normal the problem is that I wanted to apply a divs in the background that became purple with css more doing thi...
asked by 10.03.2018 / 18:50
1
answer

Change the properties of an SVG object with JS

I'm learning about creating SVG graphics for HTML and would like to know how to change the properties of an SVG cicle, rect) through JS for example, when you click on a button it changes the position of a line. I looked at some websites a...
asked by 13.03.2018 / 06:00