jquery-theonlytutorials

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:

demo

 

 

 

About the Author

agurchand

Software Engineer, Blogger etc., Visit my Youtube channel - <a href="http://www.youtube.com/agurchand">Click Here</a>

1 thought on “jQuery – Add options to select box dynamically

Leave a Reply

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