Questions tagged as 'javascript'

1
answer

HTML table cell value

I have a function that creates a row within a table html , inside one of the cells in the row I have an element of type input of which I want to obtain the assigned value, I do it in the following way: function añadirDetalle(){...
asked by 04.12.2017 / 21:19
3
answers

what does this syntax mean?

I have been trying to know if it is a method or a variable next to a function but I can not understand or find anything, javascript is for example var auto = { nombre: "Mustang", anio: 1965, motor: 5.5, color: "azul", c...
asked by 04.12.2017 / 01:24
1
answer

Concatenate two variables obtained by the getElementByID method

I have the following problem: I need to concatenate two objects obtained by the method mentioned above var textApellido = document.getElementById('textApellido'); var textNombre = document.getElementById('textNombre'); var resulta...
asked by 03.11.2017 / 20:29
3
answers

input type="date" is not recognized in internet explorer 11

I tried to place <input type="date" name="fechaesperada"> But I do not recognize the internet explorer control 11 Someone knows what I should install or what syntax should be in order to have a control to handle a calendar   ...
asked by 01.11.2017 / 13:58
1
answer

I can not define multiple script tags

I have the following code <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />...
asked by 01.11.2017 / 19:06
2
answers

How to order the id's of the elements of a table - JS

in my code I add elements to a table using javascript. function agregarAlumno(){ var rut_alumno = $('#rut_alumno').val(); var nombre_alumno = $('#nombre_alumno').val(); $('#example1 tbody').append('<tr id='+rut_alum...
asked by 28.08.2017 / 13:46
2
answers

change background color without an input, and define a value in a function in javascript

I'm trying to change the color of a div with a function in javascript, but now I want to load the page already have that color, according to a value already defined in the function, without the need for an input, but I have not achieved it, I ho...
asked by 03.10.2017 / 22:02
1
answer

Error showing the rest of the text with a button?

I'm using javascript to show the truncate of a text, but when you click to show the rest of the text, just enter the value inside the incomplete button. html: <div class="col-lg-10 "> <span>Lorem ipsum dolor sit amet, cons...
asked by 09.10.2017 / 20:51
1
answer

Checkbox with JQuery (select and deselect)

Good day forum. I bring you a query about jquery and html, I have a form and in this three checkbox which each one will have a different behavior is to say when you select the first checkbox show me when the deselections I hide that div until...
asked by 13.09.2017 / 19:38
1
answer

How to get the number of times a value is repeated in an array?

I need to know how many times each of the parts is repeated, the unique key of each is the id that has each array within the array . Currently I only print the names but I can not find how to do an accountant for each part...
asked by 21.08.2017 / 15:41