Questions tagged as 'javascript'

4
answers

Show Data using keyup (Does not work)

I need that when writing in an input of type text, if what I wrote corresponds to a value of the database, the result, which in this case would be the name of a student, is shown in another input of type text . I am entering the data in a modal,...
asked by 25.09.2017 / 21:00
1
answer

how to make yii2 generate two buttons in a modal on the footer side?

I have a Modal that by clicking on delete, it shows a warning dialog box to eliminate, the problem is that I have a single button and I would like to add another one that says cancel, likewise I would like to add a color to the modal header, but...
asked by 12.10.2017 / 16:24
4
answers

Limit number of selectable options in a multiple select

I have this multiple select: <select multiple="" class="form-control" name="evaluador[]" id="evaluador"> <option value="1">Casa</option> <option value="2">Apartamento</option> <option value="2">Finc...
asked by 31.10.2017 / 17:18
1
answer

Does not perform operations

How do I style bold to any text from Javascript ? window.addEventListener("DOMContentLoaded",()=>{ var iLabel = document.getElementById('labelamodificar'); iLabel.style.fontWeight = "900"; }); <label id="labelamodific...
asked by 21.09.2017 / 01:29
1
answer

Duplicate data when traversing JSON (JavaScript)

I have a JSON in which I keep a series of errors. I'm going to export them to a CSV, so I need the values of all the fields (they will be contained in the error and others that are not), for them I have conditioned it with nested IFs. var e...
asked by 20.09.2017 / 15:58
2
answers

axios.get inside a for

Greetings friends, I'm new with Nodejs and I have this problem, my function receives an array with some ids of products and I need to iterate over that array to consult and bring the image of that product and in this way to build an array with t...
asked by 20.09.2017 / 22:23
2
answers

Error with scope

I have this code, and a very common error that I have is that we very much control the scope between HTML and Javascript , by that I mean that many times when I call a function directly from the HTML and that function is in a...
asked by 24.09.2017 / 16:26
1
answer

Edit parent element that has been clicked

Greetings, In this table I make a selection and in one of the "TD" I have made an INPUT to fill that space with the desired data, all with AJAX and working perfectly, but that I do an INSERT of the INPUT I keep coming out the INPUT box and I...
asked by 23.09.2017 / 15:52
1
answer

How to correctly return the word?

function ordenar(string){ var abc = 'abcdefghijklmnopqrstuvwxyz', to = abc.split(''), str = string.split(''); for(let i=0;i<to.length;i++){ for(let j=0;j<str.length;j++){ if(str[j]...
asked by 24.09.2017 / 17:56
1
answer

How to filter data in firebase (web)?

I am new using the firebase service, well my question is how can I filter data? That is to say if in a form I write text as I do so that I look for the text of that form in the database and then show me the possible resul...
asked by 08.09.2017 / 21:25