I want to dynamically reset and fillout options of a dropdown using scripting

Please show your code. See Wiki - how to post code on this forum.