Questions tagged as 'javascript'

1
answer

persistence in LocalStorage (fixes)

I have the following code, what I want is to save an array in my localStorage, which will be saved 1 by one as I add them, so far this is what I have, if you save the first item in the room, but already from the second, it begins to over write i...
asked by 26.12.2018 / 22:59
1
answer

Table with consecutive and accumulator in Vue

In this table programmed in VUE 2 I want this result: +-------------------------------------------+ | fact $importe $ acumula consecutivo | +-------------------------------------------+ | 23 $ 350 $ 350 1 | | 28...
asked by 27.12.2018 / 01:46
1
answer

Print function

I added a "Print" button to my view: I wanted to know if there is any way, either in PHP or JS, that when you click on that button, send me to this screen (which is the one that opens when we press CTRL + P) Thanks and regards!...
asked by 05.12.2018 / 02:55
1
answer

How to decide if the color of the letters is white or black depending on the background?

I would like to know how to change the color of the letters dynamically with JavaScript, as well as the Color Picker de Google for example when the background is black the white letters and vice versa. To find the Color Picker de Go...
asked by 06.12.2018 / 21:04
2
answers

Create Json with data from a table

I have the following table that is filled when making a formula What I must do is that when I click on a button to export, I create a json with the code and the quantity, and I put it to a function. This is what I have: $(document).ready...
asked by 17.04.2017 / 18:55
1
answer

How to send an input's array to a Spring controller from JavaScript?

I'm having a lot of trouble doing what I need. I'll explain the code and the problem: The user must choose the ice cream tastes that he wishes by clicking on the checkboxes of the image and then send the order through the "Send Order...
asked by 26.11.2018 / 16:02
2
answers

Get the parameters of the onclick parent event

I have a function that is being called in a click event and has a $container parameter defined I'm trying to stop the process of that function, open a modal that has a save button and then continue with the original function by...
asked by 14.04.2016 / 20:42
1
answer

Help with Number Formatting in Django 1.9

Hello I have the following problem, I am trying to format numbers with the help of the library jquery-number , the problem is that when I want to assign its properties to the input, I do not achieve it since at the moment of placing said field...
asked by 21.04.2016 / 18:18
1
answer

compare elements and show alert or execute function in javascript

I'm practicing javascript and creating a task list manager. I have my input field, which by pressing the button or giving enter passes the value of the input to a list of tasks below. What I want and I do not know how to do, is: when giving e...
asked by 19.11.2018 / 21:01
2
answers

Changing the text of a label with jquery with text () or html () does not work

I know that to change the value of a label it is valid with html () or text () but the problem is that it does not work. Let me explain: The function of the program is that by double clicking on an element with the class ".item" that element...
asked by 19.11.2018 / 10:29