Questions tagged as 'jquery'

2
answers

Calculate duplicate input value

I have a div with 3 inputs (value, aliquot, totalvalue) they are inside a div clone in jquery ... I can do the calculation through id like in the code below but as it is cloned in jquery it only works in div main because it can not have duplicate...
asked by 11.11.2016 / 00:25
1
answer

checks if the input value has changed with jQuery

I need to identify if the value of a input has changed with jQuery. I'm trying to do this: $('input[name=cliente]').on('keyup', function(e) { // Aqui vou por minhas funções } But it is not working. My input is named clie...
asked by 15.08.2016 / 19:05
1
answer

Null value is going to ajax error function - ASP.NET MVC

I am developing a CEP query page where the information is sent and returned in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type: "GET", success: function (retor...
asked by 19.08.2016 / 17:26
1
answer

Why do I have to use FormData to send files via Ajax?

I created an HTML page with a form, and in it a imput file and a hidden field, all of them with the name attribute. <form id="meuForm" action="..." method="POST"> <input type="hidden" name="itemId" value="1" /> &...
asked by 06.09.2016 / 22:08
1
answer

How to select a select option with javascript / jquery

I have two selects , one for employee and one for function, and it is necessary that when an employee is selected the function of that employee is already selected automatically. This alert works perfectly, but I need instead to...
asked by 08.08.2016 / 21:45
1
answer

maskMoney without needing to select the input

I'm using maskMoney but it only formats value if I click on input, how can I change it? Or is it formatted as soon as the page loads? $(function() { $("input").maskMoney({ allowNegative: true, thousands: '.', decimal: '...
asked by 11.07.2016 / 18:52
1
answer

Function does not execute without setTimeout

I'm having a problem executing a function when I click on icheck . In case, the function is only called if I give a setTimeout of 1 millisecond, less than that or without timeout the function is not executed. How can I do to...
asked by 06.07.2016 / 23:04
1
answer

How to verify modal closure

Via Ajax I register items in the database and return a certain value to the user through a modal using innerHTML . Then the html of the modal is filled with the values that I pulled from the bank. I put a .gif...
asked by 07.07.2016 / 20:48
2
answers

Retrieving DOM objects sorted by a criteria

It would capture all DOM objects and sort them by a set of rules. For example, in the code below the attributes data-gs-x="0" data-gs-y="0" define the position (x, y) on screen. I would like to get the elements considering the order of the coord...
asked by 10.06.2016 / 15:37
1
answer

how to block a jquery checkbox

I would like to know how do I block a checkbox as a bootstrap button since I have it and I make a simple limit check in 2 or only 2 checkbox can be selected. When I select the third checkbox it shows me my error messa...
asked by 12.06.2016 / 04:14