Questions tagged as 'javascript'

3
answers

Pick up button id

How can I get the button id pressed, since the buttons are automatically generated with php and do not have their id set, I need the button id to do a SQL query with php, Code that generates the button: while ($linha = mysqli_fetch_array($...
asked by 08.12.2016 / 12:57
2
answers

Error catching attribute 'checked'

JQUERY $('#caption-item-1').click(function(){ if($('#boleto-input').checked == true){ $('doacao-proximo-1').css({'display':'inline-block'}); }else{ $('doacao-proximo-1').css({'display':'none'}); } }) HTML <l...
asked by 31.01.2017 / 12:21
3
answers

Make field required depending on the answer

I have a medical form, and the following change was requested: If field 1 is checked = 1, make field 2 mandatory. If not checked do not make it as mandatory. Could anyone help me?     
asked by 01.02.2017 / 16:51
2
answers

Algorithm validation Mac Address

Does anyone know which validation algorithm is used by this site? link I searched the internet a lot but I could not find it on the site until it says how it is done but I do not have much time to study .. so I would like to know if anyo...
asked by 17.11.2016 / 18:01
3
answers

Get local time in javascript filled with zeros?

I'm trying to get the local time and minute in javascript. The first way I tried was this: date = new Date; date.getHours() + ':' + date.getMinutes() // 10:5 But for the time of 10 hours and 05 minutes, it returned 10:5...
asked by 15.07.2015 / 15:09
3
answers

How to make simple include script in html

I would like to know how I can make a simple script to make my login screen available to my clients. 'Example' I have a simple form that logs into my system <form action="http://www.xx.com.br/logar.php"> <input type="...
asked by 05.07.2015 / 17:55
3
answers

How to zoom in on an image by hovering the mouse over it?

I'm creating a tattoos site that contains a photo gallery. I would like that when the user passes the mouse over an image it is enlarged to a larger size. I'm a beginner in site assembly, I understand a bit of HTML and CSS; however, I am not...
asked by 28.05.2015 / 09:05
1
answer

Add and show tooltip

How do I add a tooltip to an input and make it active using js? (I'm using twitter bootstrap)     
asked by 20.07.2015 / 03:41
2
answers

Automatic update with Javascript

I have a radio page and I need the cover of the current song to change automatically, updating it every 5 seconds, taking the image from an external file that I call playlist.php which returns the tag: <img src="url-da-imagem" /> I...
asked by 10.07.2015 / 08:29
2
answers

Code within parentheses [duplicate]

What's different about writing a Javascript code in the following ways: Original Form: 'use strict'; var openCtrl = document.getElementById('btn-search'), closeCtrl = document.getElementById('btn-search-close'), searchContainer =...
asked by 06.03.2017 / 20:57