Questions tagged as 'javascript'

1
answer

Counter does not work

I have a table with different foods and for each food a checkbox. I want for each selected food to be adding their kcals and show them at the end. The kcals of each food are double type. I have made the following code but it does not continue ad...
asked by 28.06.2017 / 12:57
2
answers

How do I get the selected data from a combo?

My problem is that I do not know how to capture the selected data from the combobox list, I do not mean the value 1,2,3,4 I mean what the combo shows, in my case team names, the data I bring them with js, and I insert the numeric value that I se...
asked by 09.08.2017 / 05:31
2
answers

Using Object.assign for a multi-level javascript object

Well I am doing a React-Readux application, and I have the following Array of objects that my store has: const authors = [ { id: 'cory-house', firstName: 'Cory', lastName: 'House', address: { city: 'Caracas' } },...
asked by 02.08.2017 / 01:16
3
answers

Error 401 when sending email with JavaScript and AJAX

I was looking for methods to send emails without PHP or as little as possible by AJAX, and I found a method on the Formspree page. It's very simple, but browsing I found this on GitHub that works perfectly to a certain extent. At the time...
asked by 14.06.2017 / 12:59
1
answer

How to hide an item by clicking outside it?

I want to do something like this: Suppose that I click on a button to show a menu, and I want to click on the elements that are inside that menu, but when clicking on a different element of that menu (or the elements that it brings inside) th...
asked by 19.06.2017 / 05:20
1
answer

select a value of a select

I am trying to select the value of this selector, to edit the initial value and replace it with a new one assigned by a user. but I can not give the solution. Can you give me a suggestion please ??. Thank you very much <select name="prin...
asked by 21.09.2017 / 21:45
2
answers

Javascript Fix

I have this script, it works, this program caputura the information of the months of the year, and shows them, is within a for cycle, the program that I have is the following: I want you to print the month's message like this: The first mo...
asked by 16.10.2017 / 21:38
1
answer

Help to send AJAX with NippleJS

I'm using nippleJS: link I'm not 100% sure if it's possible to send the joystick information but I'd say yes. I want to send an AJAX form with the position of the joystick and I want it to be in real time to control some engines. I can not...
asked by 06.10.2017 / 22:43
1
answer

Delete a node / div - DOM - Javascript

I put you in situation. I have a form with id="miformulario" in which there are 2 buttons ( btnEnviar , to send the form and show in a box / div certain elements of the form, and btnEliminar , to eliminate the box /...
asked by 20.05.2017 / 13:41
1
answer

Error in a for loop in jQuery

I have this Supersize Script <script type="text/javascript"> jQuery(function($){ $.supersized({ // Functionality slideshow : 1, // Slideshow on/off autoplay : 1, // Slideshow starts playing automatically start_slide : 1, //...
asked by 30.05.2017 / 11:34