Questions tagged as 'javascript'

1
answer

Enable content after a date

Good afternoon, I'm new here and also in this universe of programming I needed to make a link on my site available only after a date. EX: Link 1 only releases after 3/24/2018     
asked by 15.03.2018 / 14:18
1
answer

Automatic scrolling for audio playing in a playllist

In the following player the audio running is not shown, ie if you are playing audio 10 the page does not scroll to the same, how do an automatic scrolling so that the page is rolled up to the running audio? / p> // Dependencies: // https:/...
asked by 17.03.2018 / 13:41
2
answers

want to display all json array records

I made this javascript code: function ajax(response) { var dados = response JSON.parse(dados).forEach( function (registro){ var html = "<tr>" html += "<td>" html += registro.nome html += "<...
asked by 15.03.2018 / 22:25
1
answer

Change a clone's style

I have a button that when clicked, it creates a square on the screen, which is a div 100x100, like red background. For each click to appear a new square, I used container.appendChild(clone) being var clone = quadrado.cloneNode(true)...
asked by 13.06.2018 / 02:19
1
answer

Change values according to the selected option

I have a table of plans here, and it has 5 columns, for 5 plans obviously. In each column there is a select to choose the periodicity of each plan. According to the option selected in this select, it should change the value that is being d...
asked by 12.06.2018 / 20:01
1
answer

Format sum result with comma - Jquery

I'm making a sum of all values for a column in a table. Returning par to html, is being returned without the comma. How can I make the comma appear in the second house? var valor_recibo = 0; $(".valor_recibo").each(function() {...
asked by 12.06.2018 / 02:49
2
answers

How to add a column at page runtime?

In html5 / css / bootstrap 4 ... How can I add a column at runtime of the page? div class="container"> <h1 class="page-header">Tabelas com Bootstrap</h1> <div class="table-responsive"> <table cla...
asked by 12.06.2018 / 06:14
1
answer

Get column of HTML table

I searched here in SOpt, but I did not find that question ... How to get all values from a column in HTML? I just figured out how to get value from a cell, the idea is to make a filter with it I currently use a class in <td> ,...
asked by 09.03.2018 / 14:01
2
answers

How to fire a JS function inside a PHP IF?

Inside PHP has an IF that should execute a JS function. Thus:      if ($x == $y) { // como executar a função nada() dentro deste if? } ?> <script> function nada() { alert("nada de mais"); } </script> In short,...
asked by 07.03.2018 / 21:13
1
answer

Get values from a json / object

I have the following json: And2selects,oneforstateandoneforcity,Ialreadyfilledthestatecorrectlyusingthisjson://comboboxestados$.getJSON('http://api.doupenglish.com.br/unidades',function(unidades){varselectestado=$("#selectestado"); v...
asked by 09.03.2018 / 00:58