Questions tagged as 'jquery'

2
answers

Get a word from a variable that has more than one word, with jQuery

I have a JSON file with employee data such as full name, birth date, marital status, position, salary. I need to show through a filter according to the name or surname, regardless of uppercase or lowercase: Example: [ {"nome_com":"Juan...
asked by 04.03.2018 / 01:07
1
answer

Scroll according to clicked element

I have a list of links , example: <ul class="todos-links"> <li> <a href="#alvo1"> Alvo1 </a> <li> <li> <a href="#alvo2"> Alvo2 </a> </li> <li> <a href="#al...
asked by 06.03.2018 / 16:04
1
answer

Pass files by ajax

I'm creating the product registration form for a website, and in it, all forms are submitted by ajax to an api. The problem is that in this particular form I need to send images to the server. I'm trying to use the FormData object for sending, b...
asked by 25.09.2017 / 01:57
2
answers

As per Javascript variable within an html value?

I have the following code: console.log(ArmazenaIds); console.log(ArmazenaEmails); contaQuantidadeDeEmails = ArmazenaEmails.length; //listando emails selecionados na div .top for( c=0; c<contaQuantidadeDeEmails; c++) { $('ul').append('&l...
asked by 19.11.2017 / 19:50
2
answers

Save after hiding a div

I use a Jquery code to hide a div, and I would like that when I click the close button it will save and prevent it from being displayed again to the user when the page is reloaded. $(document).ready(function() { $(".info-game--remove")...
asked by 21.11.2017 / 16:50
1
answer

Get ID of the clicked element

I have a DIV and this DIV has some checkbox with ID and I want to know how I get the id of the clicked checkbox. <div> <input type="checkbox" id="0" value="false" name="ckb0"> <label for="0">TESTE</label> </d...
asked by 13.03.2018 / 16:39
3
answers

Changing position of several DIVS with same selector in Jquery

I have a page that contains several structures with the same selector, such as: <div class="preco"> R$ 69,90 </div> <div class="preco-a-vista"> R$ 50,00 </div> As I mentioned, the above structure repeats several tim...
asked by 25.06.2018 / 03:17
3
answers

How to do when checking a checkbox it changes the background color of a table from a td and when descending it returns to its normal color

Well, I have this code, and it works in parts, when I check the box it changes the color of my td, but when I unknow the color does not return to normal, could anyone help me? Thanks in advance. $('.checkbox-regularC').click(function(){...
asked by 22.06.2018 / 22:05
2
answers

Create plots table dynamically with jquery?

I have a select with lots of parcels, and would like to add the rows in the table dynamically with the amount of parcels selected. example: $('#simular').click(function(){ $('#table').show(); var parcelas = 4; //simulando...
asked by 12.09.2017 / 17:15
4
answers

.append () an img tag?

I would like to insert a tag using append but whenever I try, it tries to insert an image into the div that I want to insert only the text, is there any way I can do it? <input type="file" multiple id="file-input" /> <script src="http...
asked by 12.09.2017 / 22:21