# JSON: Why does it show twice?

**URL:** https://forum.kirupa.com/t/json-why-does-it-show-twice/635901
**Category:** Uncategorized
**Created:** [February 5, 2017, 4:31pm UTC](https://forum.kirupa.com/t/json-why-does-it-show-twice/635901 "2017-02-05T16:31:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![itsthomas](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/itsthomas/32/7849_2.png) [@itsthomas](https://forum.kirupa.com/u/itsthomas)
#### Post date: [February 5, 2017, 4:31pm UTC](https://forum.kirupa.com/t/json-why-does-it-show-twice/635901/1 "2017-02-05T16:31:17Z")

</div>

Hi, looking at this example of Plunker:

[http://plnkr.co/edit/z0bnxjV2XkBZC0yJxL7Z?p=preview](http://plnkr.co/edit/z0bnxjV2XkBZC0yJxL7Z?p=preview)

can some one please tell my why does each answer and each question coming from the JSON file show twice?

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [February 6, 2017, 1:31am UTC](https://forum.kirupa.com/t/json-why-does-it-show-twice/635901/2 "2017-02-06T01:31:28Z")

</div>

Everything is showing up only once for me. I see exactly three different questions/answers. Did you get it fixed?! 🙂

---

<div class="post-metadata">

### Author: ![itsthomas](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/itsthomas/32/7849_2.png) [@itsthomas](https://forum.kirupa.com/u/itsthomas)
#### Post date: [February 6, 2017, 1:58am UTC](https://forum.kirupa.com/t/json-why-does-it-show-twice/635901/3 "2017-02-06T01:58:29Z")

</div>

Hi,  
Thanks for your help. Meanwhile I fixed that issue.  
However now I have another problem with the same example.  
I want that if I click on one of the select boxes (with the question), the div right after it (with the answer), slides up. To achieve this, I wrote this code:

```auto
// Event Delegation
  $('#container').on('click', '.my-select', function() {
    $(this).next(".my-div").slideToggle();
  });
```

It works fine. But I have to click a select box twice to fire up the slideToggle event.  
Why is that and how can I fix it?

Thanks

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [February 6, 2017, 5:18pm UTC](https://forum.kirupa.com/t/json-why-does-it-show-twice/635901/4 "2017-02-06T17:18:04Z")

</div>

I only have to click once. The selection box seems like the wrong control for the job, no?
