Questions tagged as 'javascript'

2
answers

Context this in an Object

I am presenting as an exam to see my level of JS and I have several doubts. I took out 39/45 and my mistakes are as follows and I would like someone to clarify them a bit:    What will be displayed on the console when "this" calls the followi...
asked by 10.01.2018 / 14:26
4
answers

Validate a Checkbox with JQuery

I would like to know how to validate a Checkbox with JQuery in a small form. <form action=""> <a>Correo: </a> <input type="email" name="correo"> <br> <a>Telefono: </a>...
asked by 31.03.2016 / 21:19
2
answers

Center text of an HTML label

I have a problem, and that is that I'm doing a program with jquery, and for each box I'm using a label (teacher's requirements), but I can not center the letters on the edges, they're going towards the top edge. I leave the source code...
asked by 04.04.2018 / 17:01
3
answers

Create a JSON in Javascript

I have some data in some arrays in Javascript and I want to go through those arrays and put the values in a Json, I am tested this code and I am not able to create the Json. To check if I have created it I am trying to print a value in <spa...
asked by 26.03.2018 / 18:37
1
answer

Word Finder with JavaScript

My problem is this, on the internet I found a scrip to implement a word filter within my project, it works perfectly. Example: Filter "Tienda Abarrotes Pablo" and it shows me the name of the store and its characteristics but if I search for "...
asked by 14.12.2018 / 22:36
2
answers

How to load the DropDown in Jqgrid

I have tried different ways to load dropdown from my DB to jqgrid but I really do not get it, the idea is to show the dropwdown and set the selected that I bring it from my DB . Attachment captures: In charge...
asked by 06.07.2018 / 22:21
2
answers

Fade only the background of an HTML element

I want the text not to be lost, only the red background color should be lost. Here my code: $('#confirmacion').fadeIn(9500); $('#confirmacion').fadeOut(9500); #confirmacion{ background-color: red; color: #000; height: 2em;...
asked by 23.01.2017 / 05:56
2
answers

Check that the value of a field complies with at least one of 3 conditions

I am doing a program which you need to put the Spanish document (NIF, NIE, CIF) and I need to check that the data entered are correct. The user enters the value in a single input and must match the NIF, or NIE, or CIF format. This is the c...
asked by 12.04.2018 / 16:37
3
answers

Replace strings with replace JS

Hello I have the following code in JS that detects me in a block of content if it has any of the following sequences of characters and they have to be replaced by images, the problem is that the replace function does not allow me to replace them...
asked by 28.04.2018 / 20:27
2
answers

Inheritance exercise in JavaScript

They ask us to carry out this exercise and I have some doubts about the inheritances. My solution that I do not know if it is correct function Animal(nombre, especie, numPatas, cola) { this.nombre = nombre; this.especie = especie; thi...
asked by 25.05.2018 / 00:54