I have been trying to do this code from past two days. The problem is i have a select box which i have 4 options. And i have to create select boxes with 3 options each for all the options of main select box dynamically using javascript. But the problem is i have kept an add option button with text box for main select box. I have struck there. How can i create a select box using user entered add option? Any help in the form of code is really appreciated.