Questions tagged as 'jquery'

0
answers

Changing $ .getJson to $ .ajax

This code works perfectly: $(function(){ $('#id_categoria').change(function(){ if( $(this).val() ) { $('#bairros').hide(); $('.carregando').show(); $.getJSON('sub_categorias_post.php?search=',{id...
asked by 03.11.2018 / 15:03
1
answer

Go adding values from for into array

I created an array: var tagListArray = []; for(i = 0; i<resultados.item(i); i++){ tagListArray = ["valor1", "valor2"]; } console.log(tagListArray); This resultados.item(i) returns me values, how do I add them to the array?...
asked by 08.11.2018 / 14:37
1
answer

pass variable to jquery function

I need to manipulate the clicked button inside this function, how to pass the btn variable into it? $('.btn_excluir').on('click', function () { btn = $(this); swal_confirm('Deseja realmente excluir o registro?', function (btn) {...
asked by 08.11.2018 / 13:53
0
answers

Problems submitting a multiple select in codeigniter in php

I have this select multiple in html that is without anything and add items at the click of a button. <div class="row"> <div class="form-group col-md-12"> <?php echo form_label('Para Vin...
asked by 31.10.2018 / 19:15
0
answers

Auto Update csv file in HTML Table with Ajax

I have a JS code here and it runs with Ajax. In the subject created I would like to load the csv already selected in the site, and every time I reload the page it loads the csv in the html table. No need to select and thus generating Auto Update...
asked by 31.10.2018 / 17:51
1
answer

Reorder elements of an on-screen search

I have an application in django and need to reorder the elements of the screen when the user decides to sort by date, popularity, etc. I would not like to submit a new search every time the user selects a filter, I believe the best way would...
asked by 31.10.2018 / 16:02
1
answer

Get value of Select Option and Checkbox of several lines

I need to make a list of employees that are linked to cost centers and I need to tell you if that employee is a leader within that cost center. I tried to mount a select and an added checkbox by clicking the + button, but I can not get the co...
asked by 09.11.2018 / 18:49
1
answer

Error executing js

I have the js code (below) to change the name of a link, but the script does not work. And when I do the console it works normally. Can someone tell me what it would be? The script is at the end of the html document. <script> var tex...
asked by 09.11.2018 / 15:57
1
answer

How to call Angular method 4 in HTML code generated by jQuery?

I'm using a template that I bought in Angular, but it's not all in Angular has a lot of jQuery. I'm using jQuery's Datatable (since it's already the template's native, it's all css ready and it's already fetching the data and paging), but I n...
asked by 09.11.2018 / 14:18
1
answer

I can not use CSS pseudo-element with JQuery

I want you to click on the pseudo-element, the menu opens, I tried several codes but none worked, the last one I tried was this: $('#overlay-menu').after().click(function(){ var menu = $('#overlay-menu'); //Antes eu tentei usar o this, por...
asked by 11.08.2016 / 16:31