Questions tagged as 'jquery'

1
answer

Validation of select without form

I have a view where I have dynamically generated selects and a link. I need to make sure the selects are selected when clicking the <a id="add-cart" href="{{ route('site.add.cart', $product) }}" class="btn btn-danger mt-5">Adicionar ao...
asked by 17.01.2018 / 18:20
1
answer

Get value of data-cod element

How do I get the value of the data-cod element? $(document).ready(function() { $('.chatUsuariosLista').click(function() { $("#para").val(this.id); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2....
asked by 19.08.2017 / 17:25
1
answer

Microsoft Edge passing strange characters in AJAX call

I have an Ajax call on a web system, where you specify a date of dismissal, and you dismiss an employee on that date: dataistheparameterthatcomeswiththeAjaxcall.WhenItestinChromeoranyotherbrowser,itworksperfectly.ButmyclientusesEdge,andwhenI...
asked by 11.05.2018 / 21:29
1
answer

Insert array from ajax into mysql database

I have this ajax that shows the items chosen in the " checkbox " of the form. $(document).ready(function(){ $('#submit').click(function(){ var languages = []; $('.get_value').each(function(){...
asked by 17.05.2018 / 22:11
1
answer

What is the purpose of the ajax error function?

I have some doubts, what is the error of ajax? $.ajax({ url: 'ws/controller/sys_controller.php?id=4', type: 'post', data: dados, success: function (data) { /*$("#loading").hide();...
asked by 23.12.2017 / 11:08
1
answer

Increase installments with Jquery?

I have a dynamic form and I made a function for somar 30 dias after the first expiration, but if I enter dates having the day 31 or day 01 you are doing the wrong calculation, for example: if entered 12/31/2017 as 1st expira...
asked by 22.12.2017 / 14:33
3
answers

Calculation between two inputs and result in another

The script below works only for the first block when you enter the quantity. There is some way for the function to perform the calculation depending on the block in which the quantity is entered. $(document).ready(function() { $('.so...
asked by 26.12.2017 / 13:46
2
answers

How to create associative arrays in javascript, json, how to manipulate?

It's the first time I'm dealing with this situation, so I do not know exactly how to get around it. The fact is this, I have a form with several inputs, divided by sections: IntheExperienceTab,IfillinsomeinputswiththedataandwhenIclickaddIcreate...
asked by 15.06.2017 / 06:31
2
answers

How to make a div hide when clicking off it with jQuery?

Hello. How do I hide this div when I click outside it: IneedittodisappearwhenIclickoutsideit.Here'sasimilarexample: $("body").on("click", function() { $(".passageiros-div").slideUp("slow/400/fast"); }); .passageiros-div { border...
asked by 08.06.2017 / 20:07
2
answers

Get value from an array

I'm trying to get the value of a field from a table created with Ajax. With the function below, all fields with the name qtde appear, including what I need. I need to make a simple account of a typed field less this created ( qtde - qt...
asked by 16.06.2017 / 22:17