Questions tagged as 'javascript'

1
answer

get value from a JS variable and put in an input value

I want to get a value from a javascript variable and put it inside a input value to send via get . My JS looks like this: $(window).load(function() { var count = 10; $('a[name=alex]').click(function() { documen...
asked by 03.01.2017 / 04:08
2
answers

How to trigger pure javascript keydown event [closed]

How do I trigger events via code ex: keydown , keypress and then run a function when the Enter key is pressed, with pure javascript?     
asked by 03.01.2017 / 12:40
1
answer

Problem with time display

Dae galera, with a little problem here, I have the following function: function atualizaHoraServidor() { var dispTime = formatarData(digital); $('#horarioServidor .horarioRelogio').text(dispTime); digital.setSeconds(digital.getSeconds(...
asked by 03.01.2017 / 14:48
1
answer

Calculation of interval of 2 dates

Personal how do I separate dates and calculate the range of 2 dates and in the daterangepicker? Ex: I put the default selector $('input[name="daterange"]').daterangepicker(); I select the date range between them and the beginning stays in t...
asked by 18.03.2017 / 09:31
1
answer

Google Chrome - Full Screen Image Problem

The original image is this: link I'm using event click to call function "toggleFullscreen" . Follow the code: Html: <img id="image" width="450" height="350" src="http://4k.com/wp-content/uploads/2014/06/4k-image-tiger-ju...
asked by 30.12.2016 / 19:16
2
answers

Change the image according to the screen resolution

I'm studying something in jQuery for the case. Is it possible to change an image according to the screen resolution? For example: in the browser itself, with it without minimizing is the large image. If minimized, the function switches...
asked by 20.03.2017 / 01:32
2
answers

Error while showing and hiding a div with Jquery

Sirs, good morning! I'm trying to show and hide an image if it satisfies the set conditions, but they appear only after the else, not understanding what I'm missing. That is, the div cancel1, cancel2 and cancel3 are not appearing when if is atte...
asked by 21.03.2017 / 14:20
1
answer

Detect event click out of element

I'm learning to do tooltips, I've even thrown some previous doubts here in the OS, but I ended up with a new question; When I click outside the element that has the tooltip, it could close the tooltip, how can I do that? Current code: HTML...
asked by 22.03.2017 / 13:48
1
answer

Function for Tooltip does not work when run a second time

I'm creating a schematic of tooltips, so when clicking on a certain span, this span shows a message HTML <div class="banner-tooltips" id="banner-tooltips"> <span id="primeira-tooltip">1°</span> <span id="segunda...
asked by 22.03.2017 / 13:00
1
answer

Why is this function not working?

I'm a layman and I'm learning Javascript for a simple hybrid app . The first catch is a function that is not executing: The said whose: function calcular(){ //ap1 = parseFloat(document.getElementById('ap1').value); var media, final...
asked by 07.01.2017 / 18:23