Questions tagged as 'jquery'

1
answer

Implement button navigation: [first] [next] [previous] [last]

Explanation: I have a table in HTML + jQuery and I have an enumerated paging that is functional, but I would like to add an additional navigation to it. Question: I would like to add an implementation, of which it would be a 4-button na...
asked by 11.11.2014 / 14:12
2
answers

jQuery unbind to all, when window size = 800

I would like all actions programmed with JavaScript to go down when $(window).width() <= 800 to avoid conflicts between Mobile and desktop layout. But the truth is that it runs out of CSS but the actions (events) defined in JavaScript...
asked by 23.10.2014 / 13:57
1
answer

On event ('change') triggers when clicking outside the element

I have the following code in a input of type file : $('input-imagem').on('change', function() { alert( $(this).val()); }); It works almost right, when I click out of input it gives alert again and this shoul...
asked by 18.06.2014 / 16:23
1
answer

How do I get someone to copy something from my site, go to the "source: myite.com" clipboard?

I'd like to make it that when someone copies something from my site, it's automatically added to the content copied from the source, for example:    source: myite.com     
asked by 07.06.2014 / 20:30
1
answer

Error rendering with jQuery Ajax

Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var orderTemplate takes a template from index.hb...
asked by 19.05.2018 / 05:33
2
answers

Two jquery masks in one field

Can anyone help me? I have an input in which it is CPF / CNPJ, how do I make a mask containing two different values for the same field? And how would the code contain an additional telephone field? In other words, masks on the input cpf / cnp...
asked by 16.04.2018 / 00:42
1
answer

Button to insert new inputs into the form

I have a site that records building releases. Here some buildings have more than one tower, and I would like for each tower, I had the possibility to insert 4 inputs (type, footage, bedrooms, vacancies) Something like this: <form> <...
asked by 07.05.2018 / 18:13
1
answer

How to find an HTML component in the DOM after using the .append () function?

I am making a request for my server with $.get of Jquery, and populating my table with the method below: $.get(/*[[@{/empregados/salariosMinimos.json}]]*/ 'consultaEstadoSalario', {uf : uf,data : data}) .done(function(sa...
asked by 14.09.2015 / 14:06
1
answer

Menu for mobile

I'm making a website for the company where I work and made a multilevel menu. My problem is that when I open one of the levels, the last item does not appear and when I scroll what moves is the page that is behind. I wanted to know what I'm doin...
asked by 25.09.2017 / 22:17
1
answer

Change integer value to string or insert mask

I have a function that counts, but I need to add a mask to this value. The final value is 3000 only I need for 3,000; Is there a way to change the integer value to another format and still do the count within the function itself? Follow fu...
asked by 22.12.2017 / 17:01