Questions tagged as 'jquery'

1
answer

How to concatenate variable in element id? jQuery

Hello, I'm trying to return information from a .php file in a specific div using jQuery. The situation is as follows: The information will be retuned to a div with id="bkpLoja", but this div is in a section with query in the database and each re...
asked by 12.04.2017 / 14:43
2
answers

Toggle () effect down, JQuery

Can you change the direction of the toggle () effect of JQuery? For example, I made a button that when clicking, it shows and closes a div $('.botao').click(function(){ $('.div').toggle(700); }); Only, that he kind of has a...
asked by 20.04.2017 / 13:24
1
answer

Variable does not have its value after done or fail in ajax [duplicate]

I created a function to return true or false when ajax. At the beginning of the function I declare a variable "r" to receive true in case of success or false in case of failure, but the variable does not have its va...
asked by 19.01.2017 / 03:49
1
answer

Real-time Notifications with javascript [closed]

I'm building a Java application that should show on-screen notifications in real time. A teacher requests a reservation; Reservation data is stored in a json object (or in a request table); At the same time, a notification is displayed o...
asked by 09.02.2017 / 18:59
2
answers

How to read a JSON using ONLY JavaScript? [closed]

I want to read and display in a console.log the information that is inside my .JSON, but without the use of jquery or other frameworks. Basic code.     
asked by 10.02.2017 / 21:17
2
answers

Loop on object with JQuery each

I'm looping an object with JQuery each and I'm not succeeding. Object generated below via PHP: {"status":"hasP", "flag":null, "qtProcess":null, "code": null, "message": [{"id":"1","email":"[email protected]"},{"id":"2","email":"teste1@h...
asked by 10.02.2017 / 19:12
1
answer

How to keep site elements in the same place all the time?

I have the following HTML code: <div id="geral"> <p class="texto_grande_titulo">...</p> ... </div> In CSS: div#geral{ background-image:url(../imagens/borda.png); background-repeat:n...
asked by 12.02.2017 / 17:50
2
answers

When clicking on an option from a list, hide options from another select

I would like, for example, that by choosing the '10 people 'option in select' Size ', I could hide specific options in the selects' Template ',' Fillings ',' Options to Drain 'and' / p> Example: <div class="form-group"> <span cl...
asked by 11.02.2017 / 03:32
1
answer

Create dynamic inputs from a json object

I have a form that the user can add several languages that knows how to speak, this form consists of a dropdown and a button to add the respective language. At the moment I click the add button it adds me new object to an array, as I show in the...
asked by 10.02.2017 / 16:44
1
answer

Transforming clicks into JS function

I'm trying to turn my clicks into functions, since the code is being repeated in link This is the original code: $("#div1").click(function() { $("#widget-body1").slideToggle("slow"); }); $("#toggle1").click(function() { $("#widget...
asked by 02.04.2017 / 02:25