Questions tagged as 'javascript'

3
answers

How do I multiply a string by N times in javascript?

Good evening, I have a question, I need to enter a number in javascript print it in the console for the amount entered. For example if you want the string to be an asterisk "*": If I enter a number 5, the result should be: *****. Something th...
asked by 25.05.2017 / 05:48
3
answers

PopUp window without leaving it

I have a PopUp window on my page but I do not want anyone to leave by giving Click to the previous page as if it were a ShowDialog . Usage VB.Net     
asked by 22.12.2016 / 16:29
2
answers

Problem adding div tags from javascript

Well, I searched and looked at my code trying to find the error but I do not realize what it is. I explain a little, I bring orders from my bd, I use the api of Google Maps waypoints where I pass an array with the directions of the orders so...
asked by 09.12.2016 / 14:16
4
answers

Doubt c # javascript

So far to do a login using a database to verify it, what it did was that with javascript validate the form information, to then send the data, which through php, to a query to the database, which will corroborate the data entered by the...
asked by 15.12.2016 / 00:04
1
answer

How to write in 2 input simultaneously

I have the following doubt, I have a form in which the user has to fill in the same information several times, so I want to add the functionality of checking a check to fill in X fields in all the input (for example the name, which is common)...
asked by 13.03.2017 / 09:10
2
answers

Problem when executing functions with window.onload

func2 works and disappears after 2 seconds, but the first func1 does not work, the button that I have hidden is not displayed. It worked for me before I added the other javascript func2 , but not anymore. This is my code:...
asked by 19.03.2017 / 21:54
4
answers

Remove var from a function

I have the following function. The problem I have is that I can not get the var c of the function contains . Then the console.log(c) that I have in my if does not work. How can I change contains to make this wor...
asked by 20.03.2017 / 12:47
2
answers

How to concatenate results of a For in Javascript

I have the following code that brings me 3 answers in the following way in the Javascript console: "Prueba 1" "Prueba 2" "Prueba 3" But I need you to show it to me together and not in 3 lines separately. To show it to me in one line: "Pru...
asked by 07.12.2018 / 15:59
2
answers

How to change color input when changing its value in JAVASCRIPT

I have a function in javascript that counts characters and I would like to change the color of the input text when its value drops from, for example, the 1200 characters. This took me for the moment: function ocultarContador(){...
asked by 20.11.2018 / 14:00
1
answer

how to add 2 properties of 2 different objects in js (nodejs)

I have these 3 objects const leagues = [ { id: 1, country: 'England', name: 'Premier League' }, { id: 2, country: 'Germany', name: 'Bundesliga' }, { id: 3, country: 'Netherlands', name: 'Eredivisie' }, { id: 4, country: 'Spain', name:...
asked by 28.12.2018 / 07:36