Questions tagged as 'javascript'

2
answers

How to save columns of an HTML table in an array?

I have a little problem with a project that I'm working on. It turns out that I need to capture the data from an html table that the user creates dynamically and when I click on "Save data" I need to save them in an array This is my table:...
asked by 11.10.2018 / 12:51
2
answers

save data ajax in array

I have the following code where when pressing an Item of the table I make a query in Ajax this returns a result a list of item. I am declaring a Array() to be able to save this list in the. $('#table tbody tr> td').click(...
asked by 12.10.2018 / 13:51
2
answers

Restrict file types in an input

Is it possible in a file-type input to restrict the formats it can accept when selecting files?     
asked by 24.10.2018 / 22:07
2
answers

Confirm before registering a form in PHP

Holas, I am creating a registration form that I would like you to confirm (YES or NO) before submitting. My code is the following but it does not work correctly, the window to confirm is shown but in just a few seconds without clicking anything,...
asked by 19.08.2018 / 18:58
2
answers

Help ordering Javascript fix

I have a very simple arrangement of objects, something like this: let profiles = [ { 'title': 'X', 'url' : 'https://google.com', 'description': 'Lorem' }, { 'title': 'Y', 'description': 'Ipsum' } ]; Each object h...
asked by 17.08.2018 / 05:33
1
answer

HTML | Upload and display Random playlist

I would like to know if there is any library either with JavaScript or with any HTML, that I have the option to upload a production list and give it a name, and then be able to show the list as a playlist and have an option to play it randomly....
asked by 21.08.2018 / 16:08
2
answers

add inputs with jquery

I have a form in html and I need the inputs to be added when adding value to them (lose the focus), I've tried with a class in this way function calcular_total() { var importe_total = 0 $('.amt').keyup(function (){ $(".a...
asked by 09.12.2016 / 17:33
3
answers

Collect body external url javascript and load it html

Dear colleagues: I am sending this question in case someone would answer it. I have an external url (index4.html) in html that I would like to remove the body from and upload it to my current html page. I currently have this code in (index2.h...
asked by 17.12.2016 / 11:03
2
answers

javascript event handler

I'm wanting to use custom events for Javascript , and the truth is that I try to find something but either I can not find the indicated information or I do not understand it, so it occurred to me to do my eventManager , quite truthfu...
asked by 19.12.2016 / 14:31
4
answers

Why does 'jQuery' run twice?

js where I have 'jQuery', the problem is that I am executed twice. Someone can explain to me what is due and how to solve it please. Annex the jQuery ... $(document).ready(function(){ $("#botonExportar").click(function(){...
asked by 21.12.2016 / 00:23