Questions tagged as 'javascript'

1
answer

Call the value of a button to an input in a modal

I think it's something simple: In the image number 1 I have my stored value an id that is general when clicking on the button, what I want is that the same value that is stored in the value call it at the value of my input so that I can ha...
asked by 27.09.2018 / 23:49
1
answer

I can not load a JSON on a select

I appear undefined repeatedly in a select. I charge it this way: function listarcategorias(){ accion="listadocat"; $.ajax({ type: "POST", url: "../gestionweb/includes/php/getcategoria.php",...
asked by 14.09.2018 / 09:41
2
answers

Search for values from one array in another and return a specific position

I have these two arrays, the first one is made up of foreign keys that come from the BD and the second one by the detail of one of those foreign keys. How can I go through the 0 position of my first array and search the second for the value of t...
asked by 17.09.2018 / 22:36
2
answers

Error in running jQuery similar pop-up twitter?

I have developed a menu similar to facebook and twitter, the function is as follows: If you click on the link it appears if you click again on the same link it disappears. If you click on the link it appears if you click on an empty field...
asked by 28.07.2016 / 19:43
1
answer

Enter variable in regular expressions

I'm trying to pass a variable to a regular expression (so I can modify it to my liking) in this case I want to enter a number so that I can control the number of digits allowed. I can not make it work, or pass it as a separate string ... noth...
asked by 27.09.2018 / 21:22
1
answer

modal opens many times

When I open my modal it opens an alert indicating that it was opened, but if I close it and open it again, the message is displayed twice and if I repeat the process it is shown n times this is the javascript that opens my modal functio...
asked by 26.09.2018 / 21:32
2
answers

How to change the color to an html cell from a JS

I am new to this programming, I need your help with a question, I have this html: <td>{{data.macEntra}}</td> <td>{{data.macSale}}</td> <td>{{data.paquetes}}</td> <td>{{data.perfil}}</td> <td&g...
asked by 26.09.2018 / 14:24
1
answer

Nestable.js works at the logical level but not visually

I am using Nestable.js to make a list of products with byproducts so that it is displayed as a tree. I do not have any errors in the console and I do not see where my error may be, but once everything is configured, the list appears like this:...
asked by 27.09.2018 / 13:46
1
answer

Delete input and leave only the first one

I have a question about removing inputs using js , for example I have 7 inputs and I want to delete 6 of them leaving only the first, try to use remove() but this eliminates all of them. thanks in advance. $(document).ready...
asked by 19.09.2018 / 20:00
2
answers

Preloader reappears after refreshing the page

I'm having a problem I made this website works as I hope but if I open it in cell chrome after refreshing the page or go to another page the preloader reappears, any ideas on how to fix it? This is the html code : <br> <body...
asked by 05.09.2018 / 23:29