Questions tagged as 'jquery'

1
answer

Popular table with data from a JSON

Hello, I need to populate a table according to what the user chooses in an input range, example in the range he chooses the value $ 200,000 ai at the end of filling the form returns me a table (done with ul and li) with the data referring to the...
asked by 04.09.2016 / 22:31
3
answers

Problem accessing api using $ .ajax from jQuery

I'm having trouble accessing api using the $.ajax({}) function of jQuery. The Error: Mycode:<!DOCTYPEhtml><html><head><scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script...
asked by 31.08.2016 / 01:48
1
answer

How to know which div is displayed on the screen with javascript?

I have a website with several divs, and I need it when the screen arrives on a given div, an action happens, but I do not know which javascript or jquery event is responsible for that. Example: <div id='1'> div1 </div>...
asked by 05.09.2016 / 20:20
1
answer

How to limit the amount of impressions of an HTML document?

I need to limit the number of impressions of an HTML document . Currently if the file is generated (via PHP), register in the bank a sts_impresso = 1 flag, however, there are times when the user did not print for some situations:...
asked by 03.09.2016 / 16:50
1
answer

JQuery, initializing with function

I'm in an online course of JQuery where the teacher proposed a code like this: var inicia = function(){ var valorTotalItens = $('.valor-total-item'); var valorBase = 0; for (var i = 0; i < valorTotalItens.length; i++) {...
asked by 02.09.2016 / 03:23
1
answer

Integrate ES2015 Classes with jQuery

After a lot of reading I finally managed to make Babel work and thus transpile the scripts. Before using das, let's call it ES2015 classes, after reading about best practices I had something like this: ( function( Navigation, window, do...
asked by 10.01.2017 / 14:32
1
answer

Styles do not apply to elements coming via AJAX

I am assembling a page that is inserted 2 values. These values go to a page .php via AJAX and then the page returns all records in the database. Role that records the data: function adiciona(){ var os =...
asked by 29.09.2016 / 20:15
3
answers

How to pass data from one input to another with html and javascript?

I have a problem with this, I researched a lot and I could not solve my problem. I hope you can help me! I have a page (in html) with a form. I would like the value placed on the input of the first form, when clicking Submit, to be placed in...
asked by 21.09.2016 / 16:27
1
answer

Javascript callback issues

I have a div modal bootstrap that stays in the "masterpage" _Layout.csthml . <div id="ModalAlteracao" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div cla...
asked by 16.09.2016 / 22:34
1
answer

Mobile menu does not close when you click

I would like to know if it is possible to close the mobile menu when clicking the link because when it expands the menu it opens normally after I click on the link it goes to anchor that I created but the menu remains open covering the content o...
asked by 09.09.2016 / 21:44