Questions tagged as 'javascript'

1
answer

Separate Checkbox values [duplicate]

Good afternoon, I have a checkbox set that has 3 blue and 2 red selections. The priority selection is red, that is, if I take a red one even though I have not selected all the blues, the next one should be red. My problem is being to present t...
asked by 15.03.2018 / 16:23
1
answer

Link in terminal

Is there any way to do that when the localhost:3000 , which is in the terminal, is pressed ctrl + click the browser is opened in the page in question ( localhost : 3000 ) ... this in a Javascript code: console.log('\nServ...
asked by 20.01.2018 / 00:02
1
answer

Show PivotTable [closed]

I'm creating a PivotTable from the values of an object, but at the time of generating the table it does not appear. Here is the code: <!DOCTYPE html> <html lang="en"> <head> <script src="https://ajax.googleapis.com/aja...
asked by 19.01.2018 / 17:57
2
answers

How to select only the class without the daughter class in pure javascript

Good afternoon, I'm developing a modal in pure javascript. What happens is the following ... the script detects that there are tags with the "modal" class <div class="modal"> , and when it finds one or more it inserts the tags with t...
asked by 19.01.2018 / 22:55
2
answers

Change icon structure in javascript

I'm starting development and I'm on a mission that's beating head and I do not know how to finish. I need to change tag's <i> by <svg><use></svg> . This way I stop calling class and step by calling...
asked by 19.01.2018 / 18:23
1
answer

setInterval does not work correctly

I would like to execute a function infinitely every second, I am trying this way but the function is only executed once: Enter the body tag <div id="map"><div id="seg"></div></div> <?php date_default...
asked by 17.02.2018 / 20:45
1
answer

How to check if file exists in Firebase web storage?

I'm doing a web application with firebase, in this application I have an image register (optional), similar to the idea of a profile (the user may or may not have a registered image if a default image is not loaded), I would like how do I check...
asked by 17.02.2018 / 04:13
1
answer

How to target the google bookmark for a page?

I can implement a google marker, and also be able to implement a link in the marker, when the user clicks on the marker it is automatically directed to another page, the only problem that when the user clicks on the marker is the component that...
asked by 16.02.2018 / 10:56
2
answers

Given a select, how to store in an array (using pure Javascript) the value of all the selected options?

The example for the select can be the same .. <form> <select id="mySelect" size="4" multiple> <option>Apple</option> <option>Orange</option> <option>Pineapple</option>...
asked by 22.03.2018 / 21:03
1
answer

Overlapping Divs

I have a search input, which adds the tbm mechanic, but the result is getting superimposed <div class="col-lg-4"> <label for="mecanico">Mecânico</label> <div class="input-group"> <input ty...
asked by 11.01.2018 / 22:58