Questions tagged as 'javascript'

1
answer

Select2 does not work within a table

I have a table that contains different elements, one of them must be a select using Select2 to facilitate the searches. It turns out that when I add the properties to turn it into a Select2 search select, it does not work ... this is my code...
asked by 25.09.2018 / 21:45
0
answers

League of Legend API with javascript

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <t...
asked by 25.09.2018 / 19:27
1
answer

Select that depends on another deal to do it from an example that I have

Hello good morning friend here I have a select option that I need to depend on another but I do not need help I try to make this example link tds += '<select class="form-control" id="choice1">'; tds += '<option value="C">ESTRUCT...
asked by 25.09.2018 / 20:26
1
answer

Active applies to internal elements

What happens is that I have some tabs of Bootstrap, by means of a JS I am applying a class so that they are marked when they are deployed, the drawback is that I have a tab inside another and when I deploy the superior, I applies the active also...
asked by 24.09.2018 / 15:00
1
answer

Bring and display json data with ajax

I have a select in a form, and I want that when selecting an option, it shows me the ones related to it in some input text in the form (to send and save it in BD later). Use an ajax to send the selected value and make the query to the correspond...
asked by 27.09.2018 / 14:26
1
answer

Problems when checking Local storage

Muy Buenas I have an inconvenience when trying to go through the local storage to assign classes and styles to elements in the DOM. The case is that an ajax request is sent that returns a load to the local storage I used setTimeout to wait for t...
asked by 28.09.2018 / 19:47
1
answer

Select and de-select radio inputs with js

Well, colleagues, I have this, but it does not send me a mistake to console, although I can not select, can someone tell me what I'm doing wrong? < script > let ord = document.querySelector("#ord"); let comp = document.querySel...
asked by 28.09.2018 / 19:35
1
answer

How to get the id of an object that I just registered?

I have a form to register an "Property" in its respective table, but I want to be redirected to the "Edit" form when it is registered (It has additional information to add form, this additional information is to another table, and a table relati...
asked by 28.09.2018 / 16:39
0
answers

Sequelize does not validate my model

I'm new to trying to program and started with this framework called sequelize to make a connection to a database. with sequelize-cli create the following model called users to modify it to add some validations and stay as follows: 'use stri...
asked by 24.09.2018 / 21:02
1
answer

collisions on the canvas of 2 joined elements

bothering, what happens is that I have a molecule and I already have the collision with the canvas so that these molecules do not come out and bounce, the problem I have is that the collision is generated in my red atom (red circle) and not on t...
asked by 24.09.2018 / 20:45