jQuery – Add options to select box dynamically

In this post you will learn how to add (append) options to a an existing select box (drop down) dynamically using jQuery.

Let’s see the script

What do think about the above script? Easy right?

The above script not only teaching you how to add new option to an existing dropdown but also teaches you.

  1. How to check for existing values in the select box
  2. How to select the particular value in the select box

You can see the demo for the above script here:





One Comment

Add a Comment

Your email address will not be published. Required fields are marked *