Questions tagged as 'javascript'

1
answer

Display a list of elements from a view to a modal in jquery

Suppose I have a list of elements in a view: <% Dim valor As New List(Of Integer) For i As Integer = 0 To 5%> <%valor.Add(i)%> <% Next%> I send them to a modal using data in this way: <a href="#" data-toggle="moda...
asked by 11.01.2016 / 16:52
5
answers

How do I display the active or inactive checkbox results in the console or store them in an array in javascript?

I'm working on a code with checkbox and I want the results of which boxes are active or inactive to be displayed in the browser console or stored in an array by pressing the save button to later work with them . The code I have so far is...
asked by 08.09.2017 / 08:45
3
answers

Filters in JavaScript

I have an Array Data : var Data = [{"Nombre": "A","Apellido": "B","Edad": 12},{},{},{},...] How can I filter the data so that all those with Apellido are equal to B , for example?     
asked by 23.08.2017 / 23:06
3
answers

Hide Elements in HTML and Jquery

I'm doing a questionnaire in HTML and Jquery, when I click on an image that contains a question that is inside a section I want that section to hide and the next section appears, with Jquery I make a selection of the classes that contain the sec...
asked by 17.04.2018 / 20:47
2
answers

Show current date in input type date with JavaScript

I need to show the current date in a date type input instead of "dd / mm / yyyy".     
asked by 24.05.2018 / 21:14
2
answers

Problem with if else

When executing the code the result always prints the statement of else , even if the condition of if true. function Calculate() { var planetsList = { "Mercurio": 0, "Venus": 0, "Tierra": 1,...
asked by 03.04.2018 / 16:45
3
answers

Error with PHP and MySQL

I have this connection <?php # Conexion con la Base de Datos $userdb = 'administrador'; $passworddb = '1234567'; $dbhost= 'dbserver'; $dbname = 'sk_modular'; ?> and I have I'm calling the database to bring me some data...
asked by 11.04.2017 / 03:09
4
answers

How to replace tags with JavaScript?

I want to replace specific tags by using JavaScript. The labels I want to replace are these <!-- and --> . Between these two labels I have code that will be executed when the page is fully loaded. This is my code: func...
asked by 16.03.2017 / 06:20
1
answer

Is it possible to clone a Date in Javascript?

Is it possible to clone a Date() in Javascript ? That is, from a date variable, create another variable that has the same date. In the following code you can see that when comparing fecha_1 and fecha_2 it gives false...
asked by 20.03.2017 / 11:10
3
answers

Print the Javascript indexOf

I'm trying to do a kind of filter of an array in JavaScript by means of an html checkbox, when it is checked look for the indexes that start with "Motorola", the subject is like that, find them but show them as -1 or 0, I'm stuck, I do not know...
asked by 20.02.2017 / 23:45