Questions tagged as 'jquery'

2
answers

Validate whether a text contains a substring in JavaScript or jQuery

I want to know how I can validate if an input parameter in a JavaScript function contains a substring. I have this: function SweetAlert(Action) { if ($(Action:contains('Create')) == true) { swal('Buen trabajo!', 'se cr...
asked by 21.06.2016 / 13:52
2
answers

Change several Select through only one with jquery

well as the title says I need to change several select when I select one that I have as the head of the others, I'll put my example in code: //Este es el select que tiene que cambia a los otros al yo seleccionar alguna de sus opciones &...
asked by 06.01.2017 / 15:24
1
answer

Open modal with Jquery with double click

I want to open a form that is inside a modal, that's how I open it with a click: $("#ModalEventos").modal(); But I need you to open it with a double click.     
asked by 10.10.2018 / 13:31
2
answers

problems reading ajax array

What am I doing wrong? I am making a ajax request that returns me as callback this type of array or object [{"nombre":"Kabul"},{"nombre":"Qandahar"},{"nombre":"Herat"},{"nombre":"Mazar-e-Sharif"},{"nombre":"Otra"}] At the time o...
asked by 01.11.2018 / 00:41
2
answers

Data table misorders the hours

I was testing the jquery library of datatable's that is quite complete and good, related to the property that can be sorted upwards to descending data, enter time data, such as 7:15 AM, 8:00 AM, 9:00 AM, 9:45 AM, I realized that the column where...
asked by 06.03.2018 / 20:53
5
answers

Sum of elements in a multidimensional array in javascript [closed]

I have this arrangement and I need to add all the values of maracadores [i] [1] on the one hand and all of the [i] [2] on the other . And what I propose only adds the element where the for is 2 times, then at the end x only adds me 16.75 + 1...
asked by 06.03.2018 / 00:50
2
answers

How to get the superior parent with JQuery?

How can I capture the parent of containers for example I have this structure <fieldset><!--padre de todos--> <div class="on"> <!--some conten--> </div> <div class="footer"> <!--con este boton necesito...
asked by 29.09.2018 / 19:55
1
answer

How to calculate the total of each row?

I need to show the total ( .total ) of each row ( .numero ). Obviously my problem is the loop that I am doing wrong. Right now I have the following code: <table id="tabla" border="1"> <thead> <tr&g...
asked by 09.01.2018 / 12:32
3
answers

How to improve this jquery line

Good afternoon, I have this line of code, it works perfectly, but I would like to know if there is any way to remove all .parent in some way $(this).parent().parent().parent().parent().find("input").val($(this).text());     
asked by 19.09.2016 / 19:56
2
answers

Hide checkbox in jquery datatables

I have a problem when I want to hide checkbox inside a column of a table with datatables. The problem is that only the checkboxes that are shown in the table are hidden, if for example I am showing 10 rows, only the checkboxes of those 10 row...
asked by 15.07.2016 / 14:20