Questions tagged as 'jquery'

1
answer

Browser "back and forth" button and dynamic div without refresh

Me and a friend are having some problems with jQuery .. If we rely on a code to make the back and forth button of the browser work on our site, with the function of a div refresh without refresh ... The code is working in parts, however I am...
asked by 17.02.2018 / 03:18
1
answer

jQuery plugin with trigger in click event

jQuery plugin: (function($){ $.fn.extend({ meuPlugin: function(){ $('body').on('click', this, function( e ){ console.log( $(this).attr('href') ); return false; }); }...
asked by 12.02.2018 / 00:14
2
answers

How to store return on Ajax request in a variable

   I tried the following code but it does not work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria',...
asked by 12.02.2018 / 03:07
2
answers

List Json in a Select with Jquery

I am not able to list the data of a Json in a Select My Jquery code looks like this: $("#cidades").change(function () { var options_escolas = ''; var cidade = $("#cidades").val(); $.ajax({ url: 'api_es...
asked by 26.02.2018 / 21:15
1
answer

Jquery Groups of objects with same id

How can I create a group of objects where the query_id is equal within a .each $? Object {id_pergunta: "63", resposta: "não", qtd: "5"} Object {id_pergunta: "63", resposta: "sim", qtd: "19"} Object {id_pergunta: "64", resposta: "não", qtd: "19...
asked by 26.02.2018 / 13:40
1
answer

Sum with Jquery

I'm doing a simple calculation of some values: /****** Cálculos Google Adwords ******/ $('#vd_ga').on('blur', function() { var vd_ga = $('#vd_ga').val(); var pvm_ga = $('#pvm_ga').val(); $('#vm_ga').val(vd_ga * pvm_ga); $('#...
asked by 13.02.2018 / 21:05
1
answer

Buttons positioned at the bottom of the page go up when the mobile device keypad appears

I'm developing a responsive page that has a search field at the beginning and in the footer two buttons with absolute positioning, on mobile devices after clicking the input the keyboard is displayed and pushing the buttons up, is there any way...
asked by 26.02.2018 / 23:05
1
answer

Chart.js different color for negative / positive chart bars

Chart.js : Trying to put a color for positive values and another color for negative values on the chart. Works well if there is at least one negative value: See link But something goes wrong if all values are positive (no negative va...
asked by 13.03.2018 / 22:05
1
answer

Button to delete PHP photo with Jquery

Good afternoon. I need to include a button on my edit form so that I can delete the user's photo. I would like to do with jquey and ajax, I'm still learning. I am using mysql which stores only the path of the photo, the file is in a folder on th...
asked by 13.03.2018 / 20:23
1
answer

DataTables JQuery does not render column button in Codeigniter

I'm trying to put action buttons in my table through the datatTable plugin. My Javascript code $(document).ready(function(){ var table = $('#dataTable').DataTable( { "processing": true, "serverSide": true, "a...
asked by 07.02.2018 / 15:20