Questions tagged as 'javascript'

2
answers

How to get a Promise value in JavaScript / TypeScript?

I'm starting with Ionic 2, which uses Angular 2, and I'm trying to understand how promises work, since some libs I'm using work have functions that return promises and would like to get the value returned, but the return is always undefined :...
asked by 06.06.2016 / 21:17
2
answers

How do I send data from a html table to POST form?

I have a form that contains a list inside a table tag, how do I send data from this table to the POST of the form itself? Without using hidden inputs. If possible in pure Javascript, but if there is no way it could be in JQuery.     
asked by 08.06.2016 / 18:09
2
answers

jQuery with Internet Explorer

I have this code that works perfectly in Firefox, but I can not get it to work in IE. The user can only choose 10 units in total and when he reaches 10 he displays a alert() . Does anyone have an idea or a better solution? Here th...
asked by 01.06.2016 / 13:19
1
answer

How to access the data of a subArray with Javascript

I need to access the data of a subarray via javascript, I can currently access the contents of the entire array: WhatIneedtogetinthecaseiscodigoImpressorathatisinsidesubarrayimpressoraPedidobutIcannotfindanythingtohelpmewithit.ArrayContent:{...
asked by 02.06.2017 / 15:41
2
answers

How to execute a Js function when selecting an input radio

My question is simple, how can I execute a java script function, once an input radio is selected?     
asked by 04.06.2017 / 18:37
2
answers

VueJS: How to display a value in the dynamic modal input with v-model or v-bind: value

There is a listing where I return all users active on the system and there is a button for Edit User , when I click on this option, I open a modal, capture the user id and data of that user in question, and I load the inputs with the fields....
asked by 08.09.2016 / 18:11
3
answers

Associate values of an input to the nearest plane with jquery

I have an input range that goes from 0 a 400.000 to each step of 5.000 and I have a set of plans (50.000, 70.000, 100.000, 120.000, 150.000, 200.000, 220.000, 250.000, 300.000, 350.000, 380.000 e 400.000 ) each plan contains...
asked by 05.09.2016 / 20:32
1
answer

Show element and hide

I have an alerts system where the div where the alerts are is diplayed none, so when a new alert appears in my js I make a toggle to appear that alert on the screen so $("#alerts").toggle( "slow" ); How do I make the alert stay for o...
asked by 12.09.2016 / 01:16
2
answers

How to add class in jQuery to a given element?

I have a list containing "URLs" for other pages, I am having difficulty getting the URL of the current page and checking if the extracted pathname is in my list of URLs, if there is one I should add the 'active' class to the li that involves the...
asked by 13.09.2016 / 13:44
3
answers

Count elements and display an amount

I need to display a certain number of HTML elements. For example: <div class="conteudo"> <p>Primeiro parágrafo</p> <p>Segundo parágrafo</p> <p>Terceiro parágrafo</p> </div> I wanted to d...
asked by 27.01.2017 / 16:49