Questions tagged as 'javascript'

1
answer

Uncaught TypeError: register.closeA is not a function at HTMLDivElement.onclick

I have a problem with a script to close a "Box" .. follow the codes below: register_associated.php <form name="cadastro" action="" method="post"> <input type="hidden" name="acao" value="cadastro_simples" /> <div class="matric...
asked by 22.02.2017 / 23:31
1
answer

calculate duration between 2 values within the input

Hello, I have a code in javascript that helps me to calculate the duration between one hour and another, I need to know how to make these values more dynamic, I want to put the input time in an input, the time of output in another input and the r...
asked by 25.02.2017 / 05:35
1
answer

Popular a select generated by javascript

I am copying fields from a form with javascript, but in this form two input are select and option are generated from the result of a query . When copies are created, query does not run, so select c...
asked by 23.02.2017 / 18:40
1
answer

jQuery Autocomplete - Keywords [closed]

I'm using this plugin ( link ) to make a search bar on the system. It works perfectly. But I'd like to know if you can use reference words. I would search for keywords, and it would return me related elements. Example: Search for "Boat" and it s...
asked by 03.01.2017 / 14:36
1
answer

search box within a select with database search

put <select class="form-control"> <option value="" selected></option> <option><input type="text" class="form-control" placeholder="Procurar dentro do banco de dados" name="pesquisa" id="pesquisa"></op...
asked by 06.01.2017 / 01:55
1
answer

Javascript Runtime Exception

I'm trying to make a dynamic file call where I have a input that gets a name and a file with that name is loaded in the <source> in js, when the person types a file name that does not exist in the folder you would need to dis...
asked by 30.11.2016 / 05:11
1
answer

change div text with jquery

I have an 'input' and a 'div': <input type='text' id='valor' name='valor'> <div id='valor'><b>R$ 1,00</b></div> Well I need to change the value of 1.00 to the value that I type in the input. How can I do this...
asked by 30.11.2016 / 10:43
1
answer

D3.js shows nothing on the screen

I'm trying to use D3.js but I can not. I have the code below, but it does not print the map of Brazil. The screen does not show any errors, what could it be? my file "meso.json" is in topojSON format but it transforms the topojSON into GeoJson a...
asked by 30.11.2016 / 18:32
2
answers

jQuery how to load a link in a div without refreshing the page?

I'm doing a job for college where the teacher asked us to use Links without refresh it, he taught us how to do but it is not working in my case. When I change the pages in the menu, the content should be loaded by modifying only the div with...
asked by 24.11.2016 / 18:40
1
answer

How to show multiple images selected "input file"?

Here is an example: link When you select 4 different images, the 4 images are the same as the on-screen display. HTML: <form id="form1" runat="server"> <input type='file' id="imgInp" multiple /> <img id="blah"...
asked by 23.11.2016 / 20:51