Questions tagged as 'javascript'

0
answers

Problem with href="#" [closed]

It has already happened to me several times that when using a href="#" (other href redirects work perfectly for me). Right now I have copied and modified an internet code. I have simplified it to the maximum and it does not work for me....
asked by 21.11.2018 / 17:26
1
answer

Recalculate value when changing input type = range

I need your help to solve a problem. I have an input type range which, as it is changed, places the value in an output, until here everything works fine, with this value I perform an operation whose result is reflected in a span but the probl...
asked by 20.11.2018 / 19:49
1
answer

Update a PHP variable type array using JQuery

I have a plugin in wordpress that runs some counters: My question is whether it is possible to update this variable with JQuery through an event, for example by clicking on the heart icon. I do not pretend that they do the work to me, o...
asked by 20.11.2018 / 14:41
1
answer

Problems to create a callback

Hi, I am doing a test on the use of asynchronous functions and we are seeing Callback, they give me the following statement:    Implement the "callback" function to receive a number and what   print by console. Use that function to iterate ov...
asked by 07.12.2018 / 16:43
1
answer

Error retrieving variable in JQuery

When I set the date in #datetimepicker1 manually as in the code, it puts it right. But when I replace the date with the value of id , id is blank, and does not set. (the id of the item that was clicked on is a date of the style 20-1...
asked by 04.11.2018 / 15:47
0
answers

Problem with Javascript 'document' is not defined [closed]

HERE is the code var nic = document.getElementsByClassName('formulario__input'); for(var i = 0; i< nic.length; i++) { nic[i].addEventListener('Keyup', function(){ if(this.value.length>=1){ this.nextElementS...
asked by 04.11.2018 / 16:47
3
answers

Tour div father

Good day, I have a father div, and within the various divs as follows: <div id="messagesTable"> <div id="white" ><span>white --- ggg</span></div> <div id="red" ><span>red --- cambiar</span&...
asked by 01.11.2018 / 03:50
0
answers

load a table without refreshing page

Good as I can update my table, before I only sent my function when I inserted a record and just reloaded it but change dataTable and it does not do that I have to reload the page, I put a console.log and if it enters but does not update I change...
asked by 27.10.2018 / 00:15
1
answer

Problems in validating routes in react

I'm trying to create a component that serves to validate routes, the purpose is to pass through a property called protect , the component I want to validate and other properties where I want to redirect if it fails. The problem is when...
asked by 28.10.2018 / 03:35
2
answers

Help to move an element with Javascript?

I want to move a div element that is in a TD from one table to another TD of the same row, and I can not do it without errors, so I consult it to see if someone can help me: <table> <thead> <th>A</th> <th>B</t...
asked by 28.10.2018 / 20:49