Questions tagged as 'javascript'

1
answer

Paging iterations of a for cycle in Javascript

First of all I want to clarify that I do not take for granted that this can be done. My query is if it is possible to page the results of a cycle for in Javascript , let's take the following sample code: var i = null; for (i = 0; i <...
asked by 06.04.2018 / 02:31
1
answer

delay in form with jquery

I'm making a form that gives you an error to wait 10 seconds to try again. This is the code I'm using: HTML: <form id="login-form" method="post" class="form-signin" role="form" action="/recordarcontrasena"> <ul> &...
asked by 06.04.2018 / 21:26
2
answers

Radio button the same message always comes out

Why is it always 'I am employed'? How is it done to act according to the selected radio button? $(document).ready(function() { $('.EmpCli').change(function() { var valor = $('.EmpCli').val; if (valor = 'empleado') {...
asked by 28.02.2018 / 22:46
1
answer

Remove checked property from a radiobutton

Why do you always think of yourself as an employee? My intention is to remove the checked attribute but I can not get it. I looked this thread and I think I do it as the solution proposes, but it does not work for me. $(document).re...
asked by 25.02.2018 / 14:42
2
answers

HTML Javascript - Position and color of lines on canvas

I'm drawing with canvas but I need that the lines that appear are behind the rectangles and also that each line has its own color Canvas code <script> //X,Y function start () { var element = document....
asked by 02.03.2018 / 14:38
2
answers

Is it possible to convert html positioning to x, y coordinates?

I have the following problem. For example: I want to click on an image (this image has 3 cars, seen from the sky) when I click on a car I want to show the information of that car. Each car has its coordinate (x, y) in the image. I ha...
asked by 01.03.2018 / 22:00
2
answers

How could you improve the code in the if part?

I would undoubtedly want to improve this crappy code that I did, I want a simple way to show the obstacles, the problem is that I get a lot if for each obstacle created, I have them all in a multidimensional array in rover.obtsacles array, but I...
asked by 02.03.2018 / 16:45
2
answers

Show Item if True in Array Json

How do I show the content of a person if at least some of the items within the array has the status denied , this is my código . index.html <!doctype html> <html lang="en"> <head> <meta chars...
asked by 26.02.2018 / 20:34
1
answer

Block in datepicker bootstrap date range from BD

I have a daterangepicker which receives dates from the backend, to block those dates in the datepicker. I have been reading the documentation of moment.js, and its respective method isBetween , and also the plugin of range , besides...
asked by 23.08.2018 / 15:48
1
answer

add row to HTML table with JQuery in the Tbody

How can I add a row to an HTML table with JQuery? I have the following code but what it does is add a row in the part of thead of my table and the goal is to add it in the tbody. function agregarFila(Id, Nombres, ApellidoP, AppellidoM) { v...
asked by 29.08.2018 / 05:52