Questions tagged as 'jquery'

1
answer

Check if page was loaded after button is clicked

I have a button that calls other 4 buttons via jquery, each button opens a new tab and is in load state until the pdf is downloaded automatically, I need to verify that this page has finished loading to call the other buttons. Any suggestions?...
asked by 29.11.2016 / 20:25
1
answer

Trigger ~ Attribute Download HTML5

Good morning everyone, I need to download some text files (.txt) with the download attribute but I need to do this automatically when I load the page or a trigger that activates it, the problem is that I do not know how activate the eleme...
asked by 11.11.2016 / 12:47
2
answers

Display selected input value [closed]

I have two inputs with their respective ID's, I would like the alert to display the value entered in the selected field, so if I am typing in field 1 it will display the value in the alert referring to field 1 if I am typing in field 2 to displa...
asked by 11.11.2016 / 12:41
1
answer

identify when the page is opened in a popup

Is it possible to identify if the page was opened in a pop-up? I want to do this with javascript or jquery. I have the test.html page, and if it is opened in a precise pop-up it will appear a link to closing 'close' Can you do this?   ...
asked by 13.02.2017 / 12:51
1
answer

Select a badge as a Jquery child element

I have a badge that is the child attribute of a button, like this: <button id="equipeum" class="btn btn-primary" type="button"><span id ="pontoum"class="badge"></span></button> In this case the badge would be a ch...
asked by 11.02.2017 / 01:28
3
answers

$ .getJSON - How to store responseJSON in a Variable?

I am assembling a Javascript Object with the following constructor: var jsonResult = ""; // Inciei uma variável fora do escopo da Função function criarDicionario(lang) { this.lang = lang; this.dicio = $.getJSON('pt-br.json').done(func...
asked by 13.02.2017 / 17:56
2
answers

How to list array values (AngularJS) using PHP?

I would like to know how to perform the listing (" foreach ") of my $scope.items array within PHP so that I can work individually with each value entered. JavaScript: var app = angular.module('app', []); app.controller('control...
asked by 30.12.2016 / 03:31
1
answer

block of code only works with F5

Could someone tell me why this block of code only works after refreshing the page? var count = 0; $( document ).ready(function() { // alert("testando bloco"); $("#select_n").attr('id', 'select_' + count); $("#add").click(function(){...
asked by 01.12.2016 / 22:02
2
answers

Mouse events (when passing in an element x) Jquery

Well, I'm having problems with mouseenter (). it just triggers the event if I click, I need to pass the event inside an element (div). How do I do: $('#<?php echo $x?>').mouseenter(function(){...
asked by 29.10.2016 / 04:09
1
answer

Music on the jquery slide

I have a slideshow, I'm trying to get every id content div to play the music in the div content. I was thinking of using an if ($ ("# Content1"). Is (": visible") {$ ('# 1.mp3'). Play ();} But I looked on the net how to do this but did not find...
asked by 12.12.2016 / 14:21