# How to append a particular element/id in plugin's site settings in javascript

**URL:** https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584
**Category:** Development
**Created:** [December 5, 2023, 3:08pm UTC](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584 "2023-12-05T15:08:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [December 5, 2023, 3:08pm UTC](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584/1 "2023-12-05T15:08:24Z")

</div>

How to append an particular element/id in plugin site settings in javascript ,can anyone assist me in this?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 5, 2023, 3:19pm UTC](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584/2 "2023-12-05T15:19:13Z")

</div>

Hi, can you clarify what you’re trying to achieve?

---

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [December 6, 2023, 4:12am UTC](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584/4 "2023-12-06T04:12:24Z")

</div>

I’m developing a plugin and in the plugin’s js-es6 file, using the plugin-api, I get attributes such as id, user\_id, and so on. In my site settings, I have an input box where I can store ids manually. Here, I get the site settings and its inputs in the js-es6 file, but I am stuck because I have to append or update the site settings input box with the attributes that I get from the plugin-api, and this updating of the site settings input box is to be done by a button on the post menu.
