Questions tagged as 'javascript'

4
answers

How to close a modal?

I'm doing a "start session" button that when clicked, a modal appears below it to put your data and be able to login. The issue is that I do not have much experience and I do not know how to close it. I'm doing it with HTML CSS JS and NodeJS. Th...
asked by 01.11.2018 / 16:50
3
answers

How to count the true of an array of objects

I have a json and I need to be able to count how many true there is, since it says if a patient is interned or not. { "pacientes" : [ { "nroPaciente": 2, "nombre": "Anakin Skywalker", "edad": 50...
asked by 11.09.2018 / 23:20
3
answers

Control whether or not to change the value of an input

I have this and it works for me, I skip the alert $("#TextField").change(function(){ alert("El campo ha cambiado"); }); But now I try to make the alert jump depending on the value if it changes or not I've tr...
asked by 28.09.2018 / 08:56
2
answers

insert variable JS in html

I would like to pass the value of the variable visits of the document ready to the html code of <li class> $(document).ready(function(){ visitas="active"; }); <div id="cursor"> <ul clas...
asked by 03.07.2018 / 10:40
1
answer

Validate form without deleting the data

Good I have a simple form, I want to validate the fields are not empty and that the ID is not duplicated, but at the same time that those fields that are well entered are not deleted. I have the following code. <script>...
asked by 15.09.2017 / 14:09
2
answers

Name not defined when I walk with each

I am collecting data in inputs with a each , when I try to add it in a variable it tells me that the name is not defined, it seems I have a syntax error. function guardar_testimonio(){ $("#infotestis").each(function(){...
asked by 29.01.2018 / 19:51
2
answers

Problem with AJAX and jQuery

Hi, I'm new to AJAX and Jquery and obviously I'm practicing. It turns out that I have the following code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="w...
asked by 21.01.2018 / 16:08
1
answer

Problem with CSS styles

I try to modify the way I see a website for that I change the reference of the attribute href for the one that is stored on my computer; basically it is the same file with a modification at the moment; the problem is that in doing so I co...
asked by 17.02.2018 / 23:51
2
answers

Get date in Node.js [closed]

I need to get the system date with date, time, minutes, seconds and milliseconds in node.js and then convert it to an integer. Any ideas? Thanks !!     
asked by 10.09.2018 / 15:59
1
answer

Put html on a div with jQuery

Is there anything in jQuery to do the following? document.getElementById('ejemplo').innerHTML+= '<div> HTML de ejemplo </div>'     
asked by 20.08.2018 / 23:09