JavaScript On click show one hide all others JS or CSS or “Toggle”? click show hide div,click show hide div jquery,click

I have the following code: http://jsfiddle.net/chris_bentley/21onnz5a/

<ul id="header-master-fixed-icon">
<li><a target='_blank' href="#" id="header-master-fixed-search" ></a></li>
<li><a target='_blank' href="#" id="header-master-fixed-account"></a></li>
<li><a target='_blank' href="#" id="header-master-fixed-help"></a></li>
<li><a target='_blank' href="#" id="header-master-fixed-bag"><span id="header-master-fixed-bag-number">5</span></a></li>
</ul>

They all relate to a dropdown that pops down when clicked. What I need to happen is when one is clicked the others close. Right now when you click it opens and then the next opens right on to of the previous. All are closed until clicked on.

How do I fix this?

Answer:1

I'm trying to embed a Juicer.io social feed on a page that uses bootstrap tooltips. For some reason, loading the juicer embed JS (//assets.juicer.io/embed.js) breaks the JS that initializes tooltips ...

I'm trying to embed a Juicer.io social feed on a page that uses bootstrap tooltips. For some reason, loading the juicer embed JS (//assets.juicer.io/embed.js) breaks the JS that initializes tooltips ...

I am working on a d3 visualization to create a sunburst. I am also adding a functionality to search for a particular arc so that the sunburst displays arcs with only the searched label. If the ...

I am working on a d3 visualization to create a sunburst. I am also adding a functionality to search for a particular arc so that the sunburst displays arcs with only the searched label. If the ...

  1. filter javascript object by value
  2. filter javascript object by key
  3. filter javascript object array
  4. filter javascript object
  5. filter javascript object by property
  6. javascript filter object by key value
  7. javascript filter object array by property value
  8. javascript filter object by property value
  9. filter object javascript es6
  10. filter object javascript lodash
  11. javascript filter object by multiple values
  12. javascript filter object attributes
  13. javascript filter object contains value
  14. javascript filter object by key name
  15. javascript filter object list
  16. javascript filter object array by key
  17. javascript filter object by multiple keys
  18. javascript filter object based on value
  19. javascript filter object entries
  20. javascript filter object example

I am currently studying JavaScript and I have the following problem. Is it possible to get only the text from a div which has children inside it? I managed to make it work only for the text which ...

I am currently studying JavaScript and I have the following problem. Is it possible to get only the text from a div which has children inside it? I managed to make it work only for the text which ...

  1. text from which country
  2. text message which
  3. which text from about russell best supports

If the user selects drop down,flight no, only one text field and the corresponding label should come in. If the user selects drop down, all, many text fields should be generated such as for getting ...

If the user selects drop down,flight no, only one text field and the corresponding label should come in. If the user selects drop down, all, many text fields should be generated such as for getting ...