Questions tagged as 'javascript'

3
answers

ignore syntax errors in javascript

Currently I have a code that works for all browsers except internet explorer. I would like to find a way to ignore this code when I'm on the internet explorer, that is, I will not be shown any errors. what I want is to enclose my code in a kind...
asked by 02.05.2018 / 17:50
1
answer

Change the value of an input with jQuery or Javascript

I want to change the value written in 55 inputs that have the same class called input_valores_provisionales and different id (1,2,3,4 ...) in a function as soon as the page is loaded here the script $(document).ready(fu...
asked by 06.04.2018 / 07:46
1
answer

await and async replace the promises?

In the following code works async and await, my doubt is that if I use async it is no longer necessary to use promises? async function getMain() { var film = 'hola mundo' console.log(film); return film }; getMain()....
asked by 08.09.2018 / 04:57
2
answers

Change the id of a Youtube video in HTML

I'm trying to change the id of a video in my html, which is in another javascript file, where the youtube API is created. I also read the ids of a JSON file. HTML <div class="video-container"> <div id="player"> <scri...
asked by 07.05.2016 / 14:37
2
answers

Add or subtract 1 in jquery

I am trying to add or subtract 1 in an input but I do not finish it. the code that I have is this: onclick="$('#StockPagina').val($('#StockPagina').val()+1).change()" this changes the value of the input StockPagina but I add a 1 at the end...
asked by 14.12.2017 / 21:45
2
answers

List html in a textarea

I know that to list in html code is: <ol> <li>Este será el 1. </li> <li> Este será el 2. Y así sucesivamente. </li> </ol> The fact is that I need it in a textarea or in some way. I need to make the us...
asked by 13.07.2017 / 09:35
1
answer

Get Object Array String

I have this array that I add objects to: waypts.push({location: location.lat() + "," + location.lng()}); How can I get the literal value it saves? With Object.value and valueOf do not do what I intend     
asked by 05.04.2018 / 11:55
1
answer

How can I print the student with the highest grade and the student with the lowest grade of this JSON?

I need help in this exercise and I need to print the name of the student with the highest grade, and the student with the lowest grade of the next JSON: /* est == estudiantes, 5.0 == Nota Maxima, 0.0 == Nota Minima */ var est = [...
asked by 22.02.2018 / 04:14
1
answer

Is it possible to change the name of a property in a Json or Json array?

I need to change the name to a Json property from an array [ { nombre : 'Luis', apellido : 'Gonzales' }, { nombre : 'Maria', apellido : 'Perez' }, { nombre : 'Ignacia', apellido : 'Valdebenito' } ] and I need to modify it in the follo...
asked by 04.03.2016 / 02:53
1
answer

Doubt about "= new Image"

I am learning to program, the question I have is the following, What happens when you write the code in this way? (background.image = new Image ();) - Why "new Image"? -What happens with the original "Image"? Greetings!     
asked by 20.09.2018 / 15:26