Questions tagged as 'javascript'

2
answers

Call the JavaScript function with just one click

I would like to know how to call more than one function with just one "Click". window.onload = function(){ var btn = document.getElementById("resposta"); btn.addEventListener("click",function(){ var nomedoCliente = par...
asked by 11.12.2018 / 22:26
2
answers

Upload content from another file with jquery

I would like to know how to load the code from another html or php file using the $(".div").load("html.html"); The error here would be: It loads the code perfectly, but I have a button in that HTML, the button appears right but then...
asked by 13.11.2016 / 20:31
3
answers

How do I open a DIV that occupies all the internal space of the browser?

How can I open a DIV that only occupies the internal space of the browser where the sites are displayed?     
asked by 22.11.2016 / 17:36
2
answers

Count only on visible labels

I have a difficulty with my code. I have a dropdopwn menu that displays notifications. When the notification shows the same date as the current day it displays <div class="label notification-badge">NOVO</div> . The notification...
asked by 09.11.2016 / 13:49
7
answers

Obligate to fill the input with a dot instead of comma in html

In the table the price field has the Decimal data type, where input looks like this: <p><h5><strong>Preço</strong></h5> <input type="text" id="Preco" name="Preco" size="120" /><br/></p>...
asked by 09.02.2018 / 11:10
2
answers

How to put events on multiple buttons at once?

How to give an event to multiple buttons at once?     
asked by 27.01.2018 / 16:12
1
answer

Operate elements of an array

It is possible to operate elements of an array in JavaScript without the need to use a repeat structure as for or while. For example, suppose I have an array with 10 elements and I want to get each element and divide them by 2 without using the...
asked by 25.01.2018 / 06:10
1
answer

How to make a button that performs 2 events?

Hello, So I would like to know how I can make a button on which when I first click it it changes the contents of a SPAN and at the time I click it it goes back to the old value.     
asked by 06.07.2017 / 02:39
1
answer

Function that changes the string [closed]

I wanted a function that received a string and returned another string with the characters offset 4 times. For example: "aaaa" returns "eeee" "amor" returns "eqsv" Thank you.     
asked by 12.07.2017 / 16:12
2
answers

PHP session after Load ()

I'm having a little problem with my session .. When I reload the page by the function load() , my session does not update and the message is displayed Notice: Undefined variable: _SESSION As I understand it, using load() , se...
asked by 20.06.2016 / 14:57