Questions tagged as 'javascript'

2
answers

Save value of drop-down select in php

I have a problem with a select (type combo or dropdown), there I load with php a series of categories, the issue is that by an error of armed of the original base since the categories can not be more than 20/30 , they are always called by their...
asked by 20.10.2016 / 16:50
2
answers

Function to navigate within the same page without using Scroll [closed]

Imagine that I have a page that has the following lines at the bottom or end of the page, what I need is a function that when running shows the content on the screen that the client does not have to use the scoll to be able to see it <div...
asked by 09.08.2016 / 22:12
2
answers

Dropdown with select2 and jQuery ajax

I am having problems trying to fill a dropdown (select) with select2 from a remote resource: I fixed my backend code so that the API returns the following JSON code: [ {"id":9,"nombre":"Jose"}, {"id":10,"nombre":"Juan"}, {"id":11...
asked by 18.10.2016 / 20:35
2
answers

copy the value of a variable does not work in nodejs

My function is: var copia; objBD.query('select max(ID_U) AS max_id from usuario ', function(err, rows, fields) { copia=rows[0].max_id; console.log(rows[0].max_id); }); console.log(copia); variable copia shows the value u...
asked by 30.09.2016 / 14:05
2
answers

Error in JavaScript setInterval

I have a problem, I have performed a function that executes a setInterval . The first time the function was called works correctly (every second) but when I call it several times, the time goes out as if it were executing the setInte...
asked by 01.04.2016 / 18:21
2
answers

Help in Javascript with getElementById

Very good to all, I've been trying for a while and nothing ... could someone correct me and tell me what my mistake is? all the code works well, the error is in wanting to take the values of the form, that's what does not work for me. <!DOC...
asked by 26.03.2016 / 22:32
2
answers

How to show a hidden div with javascript?

I have seen some examples online but they have not worked for me the way I need to, and when I click on the id of a href that is the same of a div show me the table that is hidden. HTML CODE <a href="#" id="displ...
asked by 14.02.2017 / 21:11
1
answer

Load MySQLl data in Modal Bootstrap

Hello, how could I load all the data of the person in a modal window when clicking on the button that is shown in the image called Register? I need to click on it to load all the data, which is in a database in MySQL. I know th...
asked by 22.02.2017 / 15:08
3
answers

Sum of inputs Checkbox and Text Real time

I need to add the text type input with the checkbox type input, at this moment when I click on the checkbox it adds up and shows the total, but I need to add the text type input called service price. This is a screenshot of my form:...
asked by 21.02.2017 / 18:09
3
answers

How to clean a specific field in javascript?

I'm with a form with different fields (name, surname, etc.) How could I do in JavaScript in the field that has the focus when I press a "Clean" button. And apart, I have the RESET button that cleans all the fields. This would be my HTML fo...
asked by 15.02.2017 / 15:15