<p>Do you need something like this (using jQuery): </p>

<pre><code>$('#yourID').append( '&lt;option value="value"&gt;text&lt;/option&gt;' );
</code></pre>

CC BY-SA 3.0
2017-04-19T13:42:15.270Z
2017-04-19T13:42:15.270Z
Marco
<p>I'm developing a plugin that works with Spotify's API. I'm wondering if can I add elements to a ElementSelect field. I do have the IDs of the elements I want to add.</p>

<p>Thanks!</p>

<plugin-development>
Add elements to ElementSelect via Javascript
# Add elements to ElementSelect via Javascript

(Asked by: username_0 on 2017-04-19)

I'm developing a plugin that works with Spotify's API. I'm wondering if can I add elements to a ElementSelect field. I do have the IDs of the elements I want to add.

Thanks!

**Tags:** plugin-development

---

## 1 answers

### Answer by username_1 on 2017-04-19. Score: 1

Do you need something like this (using jQuery): 
$('#yourID').append( 'text' );


---

