Questions tagged as 'javascript'

3
answers

Chrome does not detect "$ {}"

I'm starting in JavaScript and I saw that now to concatenate strings you can use ${} , the issue is when you use it Chrome does not detect it: var nicolas ={ nombre :"Nicolas", apellido :"Gigena", edad : 19 } var pepe...
asked by 07.09.2018 / 03:35
4
answers

How to update and execute the rest of the function?

Well, I'm running the following code that modifies the content of the iframe, and since both pages are in my site this goes without problems (it's not the problem): <!DOCTYPE html> <html> <body> <iframe id="myframe" src="d...
asked by 27.10.2017 / 14:13
4
answers

that only one checkbox is selected in my view

I want checkbox not Radiobutton both id serve to show and hide DIV and value send me value to the controller <div class="row"> <div class="col-lg-5"> <input type="checkbox" name="tipoGrado" id="che...
asked by 05.01.2018 / 00:56
4
answers

I jump directly to the Else

I have to enter two numbers and you have to tell me if they are even or odd. It is half done but I try it and I directly jump the alert of the else, regardless of whether the numbers are even or not. <script type="text/javascript">...
asked by 02.02.2018 / 14:49
3
answers

Separate each two values by commas in javascript

I am trying to implement a system that when the user enters numeric data in a textarea, these will be separated by a comma every two values. As an example, another part of the program consists of pressing a button to generate a random number bet...
asked by 19.03.2018 / 13:01
2
answers

why does NaN give me?

I'm trying to perform a quadratic function and it returns NaN Can you help me please? var a= parseInt(prompt()); var b= parseInt(prompt()); var c= parseInt(prompt()); var d=Math.sqrt(b-4*a*c); var e=d-b; e=e/(2*a); document.write("<p>"+e...
asked by 15.11.2017 / 15:58
3
answers

Problems with Date () function when converting String to Date

I have a problem with the date () function of javascript what I want is to convert from a string to a date but convert the date minus 1 day. function myFunction() { var d = new Date('2018-02-28'); var n = d.toString(); document.getElementById(...
asked by 23.02.2018 / 22:11
2
answers

Change the buttons of the JavaScipt confirm () [duplicate]

How can I change the text of the buttons that appear in the function confirm() of JavaScript? The default texts are "Accept" and "Cancel". I would like to put "Yes" and "No". Any ideas?     
asked by 16.01.2018 / 20:12
4
answers

Can you pass content from a .txt file to JSON?

I have several .txt files equal to this content Content: 0 69 164 0 71 117 0 73 84 0 79 80 0 82 83 0 82 115 0 83 154 0 84 48 1 69 104 1 71 100 1 73 83 1 79 82 1 82 121 1 83 117 1 84 46 2 69 204 2 71 94 2 73 85 2 79 102 2 82 88 2 82 147 2 83...
asked by 17.10.2016 / 03:51
3
answers

Uncaught TypeError: Can not read property 'value' of null

What is happening? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="asignar.js"></script> <title>Asignar</title> </head> <bo...
asked by 13.09.2016 / 22:20