# Access the content of dcc/html component given its id

**URL:** <https://community.plotly.com/t/access-the-content-of-dcc-html-component-given-its-id/27075>\
**Category:** Dash Python\
**Created:** [August 10, 2019, 12:12am UTC](https://community.plotly.com/t/access-the-content-of-dcc-html-component-given-its-id/27075 "2019-08-10T00:12:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonneturo](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sonneturo](https://community.plotly.com/u/sonneturo)\
**Post date:** [August 10, 2019, 12:12am UTC](https://community.plotly.com/t/access-the-content-of-dcc-html-component-given-its-id/27075/1 "2019-08-10T00:12:16Z")

</div>

Hey everyone,

Is it possible to access the content of a component given it’s id?  
My setting is that I have a callback that generates a variable number of components, and I want to use these components in another callback. The issue is that since I don’t know these components in advance, I can’t put them as Inputs of the callback, that’s why I would like access them through their ids potential ids from inside the callback.

---

<div class="post-metadata">

**Author:** ![byronz](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/byronz/32/5727_2.png) [@byronz](https://community.plotly.com/u/byronz)\
**Post date:** [August 12, 2019, 3:17pm UTC](https://community.plotly.com/t/access-the-content-of-dcc-html-component-given-its-id/27075/2 "2019-08-12T15:17:26Z")

</div>

the dynamic callback is feasible if you set `app.config.suppress_callback_exceptions = True`
