How to update the value of SELECT options using jQuery

Sometimes you may across a situation where you need to update the value of your drop down options based on some condition in your form. jQuery provides a very nice way to do this for you.

Following example shows you how you can update the values in option elements of a SELECT drop down.

Enter width:
Select color:

Hope the above example helped!

Be the first to comment

Leave a Reply