Questions tagged as 'javascript'

1
answer

JSON & JavaScript [closed]

Good morning. I am using this API: link The problem is that when I make a console log, from the DATA of this api, this is the skeleton that it has: The data is inside "0: Object". To be able to access inside the code, I have to...
asked by 29.03.2017 / 16:49
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 / 20:26
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 / 12:39
1
answer

Create Array of Elements inserted in a table HTML Table

I would like to know who could help me with this problem ... I have a table in which elements are inserted through check's box, from the inserted elements I want to create an Array with Javascript but my problem is that in the array it also intr...
asked by 01.12.2018 / 17:39
2
answers

Can the client enter variables from his browser? (JavaScript)

In all the examples that I have seen, it always defines the variables in the document, it never allows the client to enter their data. I can only use JavaScript, I can not use PHP. If necessary I can add some HTML tag. Here is an example: <...
asked by 28.02.2018 / 11:49
3
answers

How to convert a string to int in Javascript?

I have a small problem with the following code. var cantidad = $tds.eq(2).find("#cant").val(); total_bultos = parseInt(cantidad) + total_bultos; document.getElementById("total_bultos").value = total_bultos; When trying to add the char...
asked by 16.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 / 20:26
1
answer

get the text of an element (td) with javascript

I have a question how to obtain the value of an element (the text within it) since apparently I do not achieve it with .value, .innerHTML, textContent and now I thought I would do it with target..but I do not solve it..someone could you help me...
asked by 13.12.2018 / 06:39
3
answers

Same function for different events of different elements. jquery

I have several HTML elements that I want to execute the same function, in different mouseover, click, etc. events. I did not want to repeat the same code for each of the elements. Example: here I apply in the change event of a select, but I w...
asked by 05.12.2018 / 15:58
2
answers

Cursor 'wait' in javascript

I'm trying to put the cursor in 'wait' mode but I have no result. Here is my code: $(document).ready(function () { $("#btnTerminar").submit(function () { $(this).css('cursor', 'wait'); setInterval(function () { $...
asked by 26.12.2018 / 16:53