Questions tagged as 'jquery'

2
answers

Shoot an event after several events. [closed]

Suppose you have several ajax requests and you want to trigger an event only when all of them are completed. Is there any elegant way in JQuery to do this?     
asked by 06.06.2017 / 18:55
3
answers

Hide part of a text with a div

I have a text within a div with a paragraph ( <p></p> ) that I want to hide with another div above To achieve this I did with the help bootstrap collapse . <script src="https://ajax.googleapis.com/a...
asked by 14.12.2016 / 18:57
1
answer

Problem with HTML item positions

I have two pages: In the first one I have the elements in a container that when they are stored in the BD are loaded in the second page. On the second page, these elements are loaded directly into the body, the problem I have is that the dist...
asked by 27.10.2016 / 20:52
2
answers

Underlined effect in hover with link

I need to cut the horizontal width of a border-bottom to show the following effect :     
asked by 26.04.2017 / 23:46
1
answer

dynamic buttons - get the ID of the button pressed from javascript

I have a view, which dynamically creates several elements of type Button in the following way: @foreach (PacienteSeleccionDispensarDto paciente in @Model) { <input type="button" name="btnPaciente" id="[email protected]...
asked by 08.04.2017 / 01:34
1
answer

Pass a jquery selection function to Javascript

Investigating a bit of jquery, I found this function: $(document).on('click', '.class', function () { let element = $(this)[0] let search = $(element).attr('dat') console.log(element) }) I am learning javascript - I still do not...
asked by 03.01.2019 / 21:26
3
answers

Add active class in menu Bootstrap with JQuery

I have this menu <ul class="nav menu"> <li class="active"> <a href="admin.php"> <svg class="glyph stroked dashboard-dial"> <use xlink:href="#stroked-dashboard-dial"></use>...
asked by 04.02.2016 / 02:58
1
answer

Wait a while in a function

I have this function function cambiosIngenieria(){ var devuelto = vm.productosGridOptions.dataSource.data(); var idDetallelinea; devuelto.forEach(function (lineaDevuelto) { if (lineaDevuelto...
asked by 26.02.2018 / 13:39
2
answers

Pass an Array using a POST using JavaScript or jQuery

I have a array that I want to pass mediante un POST (using $.post of jQuery ): var linkNamesList = []; // A este array se le añaden elementos al usar la web function sendData() { $.post('create_paste.php', {...
asked by 11.12.2018 / 21:26
2
answers

select content field input [type="search"]

I would like a type="search" field to select its content when it is clicked. Currently to change a value in a search field you must double click to select the value that contains the field. What I need is for you to do the same when you take the...
asked by 06.12.2018 / 13:49