Questions tagged as 'javascript'

1
answer

I do not receive JSON data

I have a problem receiving JSON data from a form connected to a database with fields ( id , nombre , numero ). The problem arises when I try to edit a table value and save it and it should be updated through XHR. Could so...
asked by 30.05.2018 / 13:36
2
answers

How to capture a text or number that has been entered into a text box in JS

To the user to enter a text or number, how can I capture it and store it in a variable? I've been testing with: let captureNumber = document.getElementById("number2").innerHTML; console.log(captureNumber) <input type="number"...
asked by 30.05.2018 / 17:34
2
answers

getDay () returns me 1 in JavaScript

I have the following code to get the date. var f = new Date(); f.getDay(); and when I want to get the day with the getDay() method I get the value 1 but today it is 28.     
asked by 29.05.2018 / 03:46
3
answers

Correct syntax of document.getElementById [duplicate]

Reviewing my code, I realized that I have different syntax from document.getelementbyid: document.getElementById("prcavance").value = value ; document.getElementById('up_file').disabled = true; I have it with double quotes and anot...
asked by 24.05.2018 / 21:59
3
answers

delete duplicate elements javascript fix with vue js

I have the following data in json that is stored in my data vue js proveedoresSeleccionados: [{id: 1, texto: "ORSIS S.A.C", check: false }, {id: 2, texto: "ABS S.A.C",check: false }, {id: 2,...
asked by 23.05.2018 / 03:43
1
answer

Restart or uncheck all the selected options in datatable plugin "checkboxes"

I am using an extension for the jQuery DataTables library that serves to select multiple rows of the datatable and make operations with them. The extension is    jQuery DataTables Checkboxes link But I have a problem. I need that aft...
asked by 18.05.2018 / 07:11
3
answers

Problem replacing point with comma keyPress

I comment, the matter is as follows; I'm working with HTML - jQuery and I'm using a script that replaces the dot by comma when I press it Script $('input.number').each(function () { $(this).keypress(function(e){ if(e...
asked by 26.04.2018 / 17:01
4
answers

How to add an event to an element created with JavaScript

Create a button dynamically with javascript and now I want that when you click on it, a certain function will be executed that with jQuery would be as follows: $(".elemento").on("load", function() { // Codigo });...
asked by 16.05.2018 / 00:35
3
answers

How to make a selection list for users of my website

I am something new in the world of programming and I have the following question in the following context: I am developing a web page where one can enter with your user account and make publications, comment on other users' publications, etc....
asked by 16.05.2018 / 00:45
1
answer

add elements drag and drop to input with jquery

I have this example of drag and drop but only one element can be added to the input, then if I want to add another one, I will not add it anymore How can I make it allow me to add more elements to the input? $(document).ready(function(){...
asked by 28.05.2018 / 17:20