Questions tagged as 'javascript'

1
answer

JavaScript function does not execute when I select a radio button

I created a Javascript function that needs to be executed every time one of the buttons on the radio button is selected. But nothing happens. Here is the code: <script> document.write( ) function mostraCampoArray(...
asked by 11.03.2018 / 13:10
1
answer

How to make the reload page take 10 seconds

I have this code here, but it is always reloading the page. script type="text/javascript"> function autoRefreshPage() { window.location = window.location.href; setInterval('autoRefreshPage()', 10000); } I wanted it to take 10...
asked by 14.03.2018 / 18:45
3
answers

: owl-carousel first-child no .active does not work

Good morning! I'm using the owl-carousel plugin that has several items. I need to get the first and last items from the first page, but I can not. The carousel renders like this: <div class="owl-stage"> <div class="owl-item c...
asked by 11.02.2018 / 14:28
1
answer

Change the properties of an SVG object with JS

I'm learning about creating SVG graphics for HTML and would like to know how to change the properties of an SVG cicle, rect) through JS for example, when you click on a button it changes the position of a line. I looked at some websites a...
asked by 13.03.2018 / 06:00
1
answer

Retrieve date between two dates

I need to make a for between two dates, entering each day of that period. const firstDate = new Date(_visita.data); const secondDate = new Date(_visita.dataSaida);     
asked by 17.02.2018 / 16:58
1
answer

doubts with jsPdf - definition of columns

I have the following json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017",...
asked by 17.02.2018 / 16:45
4
answers

Find string on page with JavaScript

How can I perform a search on a DIV similar to Chrome's Ctrl + F with javascript? Regardless of uppercase, lowercase, accents, etc. So far I have the result below. I get the term found and check if there is any occurrence in the text. But...
asked by 15.02.2018 / 16:07
2
answers

How to put a timeout or disable a button by time set in PHP or Javascript?

First, excuse the context of the question seems very repetitive but it is not. Well, I wanted to know if it's possible to put a timeout on a button on my standalone web page of the person you're visiting. When clicking, another person can...
asked by 20.04.2018 / 13:03
1
answer

How to receive ajax data in a vector?

Hello everyone, I'm trying to do this, but without success: HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <section...
asked by 22.04.2018 / 04:25
1
answer

How to create a filter between two dropdowns using jquery

I have two dropdowns (state and cities) do not select "status" I have the options of two ex states: <select name="state"> <option value="NY">New York</option> <option value="LA">Los Angeles</o...
asked by 11.10.2018 / 11:55