Questions tagged as 'jquery'

5
answers

How to make my input text have a separator of thousands and decimals in jquery?

I am trying to make a coin format for my input, which I want to be formatted automatically with thousand separator (",") and decimals; try with several plugins but they do not work for me. function addCommas(nStr) { nStr += '';...
asked by 09.09.2016 / 18:30
1
answer

Validations with jQuery Validate

I have a problem with a simple validation of rout I do with jQuery Validate . The issue is that when jQuery validates something, it throws a message, in my case it shows a floating balloon on the validated field and in addition to this, it plac...
asked by 18.03.2016 / 16:47
5
answers

Detect which html element has been clicked with jQuery

If I have for example several <span> and I click on one as I can, with jquery to know which one I clicked on? Are the IDs of the elements numbered automatically with item_<?php echo $i; ?> ? That is to say, I want tha...
asked by 20.01.2017 / 17:22
2
answers

Show progress bar with values while loading subpage

I have a preload or progress that I show before being redirected to another page. What I want is that while it is loading to open another page, the div of the progress is increasing up to 100%, as well as a numerical value (n / 100). I cur...
asked by 12.02.2016 / 01:53
2
answers

How to join the values of an object of a json to an array

I have this JSON. [{ GRUPO1: '3096', PER1: '0', PER2: '0', PER3: '0', PER4: '0', PER5: '0', PER6: '0', PER7: '3096', PER8: '0', PER9: '0', PER10: '0', PER11: '0', PER12: '0', TOTAL:...
asked by 29.08.2016 / 19:50
3
answers

Quit a function from a $ .each

I'm using the $ .each function of jQuery to run a JSON , and given some validation I want to show a alert() , leave the $.each and the function that contains it, I know that return false; leaves the function $.each...
asked by 08.12.2015 / 16:40
4
answers

How to create a button with jquery and that contains a span tag?

I think the button with jQuery works for me but I can not make the span tags recognize them with html . $(document).on('click', '#Crear', function() { var boton = $('<button/>', { 't...
asked by 04.04.2017 / 16:07
2
answers

What is the difference between success and done?

Well I have a line of code in ajax which I do not know if it's better to use success or done I do not understand the difference between these terms but in the end the 2 do the same or I misunderstand the concept. $('#main for...
asked by 31.08.2017 / 17:14
5
answers

Load JSON file and store variable content

I have the following code: <script type="text/javascript"> $(document).ready(function(){ $("form.loader").on('submit',function(e){ e.preventDefault(); $.ajax({ url: "data.json",...
asked by 25.03.2017 / 07:31
1
answer

Replace an html tag with jquery

When initially the website opens, a bootstrap modal appears asking to filter date. The date is filtered (example: April 2016). Click on the ACCEPT button and the magic happens, the server throws me the data to fill a whole dashboard from head...
asked by 29.09.2016 / 17:42