Questions tagged as 'javascript'

2
answers

Bootstrap Modal - Navigate element within the modal

It's a simple modal with great text. Follow the code: <div class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal...
asked by 17.01.2017 / 21:31
2
answers

Call function out of scope in javascript

Follow the code to explain my error: class Cliente { showName(name) { alert(name) } getName(){ $.get(minha-url) .done(function(data) { this.showName(data.name) }) } } The getName method returns an error because it does not fi...
asked by 03.01.2017 / 19:23
2
answers

Traverse all keys of a json

I want to go through all the keys of a json so that I can get all its values. Ex: { "logistics_provider": "{{lp_name}}", "shipper": "{{co_common_name}}", "invoice_key": "{{ae_identifier}}", "invoice_series": "{{ae_identifier}}", "vol...
asked by 18.11.2016 / 14:51
3
answers

How to print JavaScript variable value in HTML tag? [closed]

I would like to limit the selection of input date in this way, but it is not working. <script type="text/javascript"> var data = new Date(); var dia = data.getDate(); var mes = data.getMonth(); var ano4...
asked by 13.10.2017 / 17:40
3
answers

Update total value with quantity

Well guys, I have the following problem, I have a simple sales dashboard that shows the products, quantity, value and total value, so I choose a product appears the value of the item, the problem would be in the case as I would make so that when...
asked by 04.01.2016 / 19:36
2
answers

Javascript counter for clicks

Suppose I have the following counter: <button class="btn btn-primary" type="button"> Curtir <span class="badge"> 4 </span> </button> I want to apply this code below: function criaCounter(init) { var count =...
asked by 08.04.2016 / 17:02
2
answers

Search CEP by PHP Street

   First of all, I need to get the zip code down the street, that is, I do not have the zip code.   and I have the address, I need to find the zip code by the address. So please do not relate this question with Search Street by Zip Code P...
asked by 04.04.2016 / 16:37
2
answers

Problem to get input value with javascript

I'm getting the value of input through JS and sending via GET to another page. The problem is that when I type space inside input , I can not get what I wrote after the space. If I type for example: Ana Maria JS just tak...
asked by 09.03.2016 / 20:00
3
answers

Search for HTML style LIKE% ..%

How can I search in HTMLS style LIKE %..% type I own these divs with these styles <div class="texto_de_reportagem">Olá meu nome é fulana de tal e nasci assim vou morrer assim Fulaninhanhá..</div> <div class="texto_de_rep...
asked by 02.07.2015 / 03:07
2
answers

Update JSON value with JavaScript

How can I update the data.dM value without having to rewrite everything reset ..? When I do data.dM = 'lalalaa'; the value is not updated in data var data = [{ "dM": 'lolololo' }]; data.dM = 'lalalaa';     
asked by 23.05.2015 / 00:25