Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Looks you are near of it , but it repeats the selected values. if you select other thing , the previous values stays selected. Commented Sep 10, 2014 at 9:31
  • You are right, so sorry. I've updated the code, and the fiddle. Commented Sep 10, 2014 at 17:31
  • Just want understand this if it needed ? <option class='newOption'>sampleText</option . Commented Sep 10, 2014 at 17:59
  • Yeah, it's the template that I stick in and modify to create each option in the next dropdown. You could also do this by creating a hidden element (say a <script> with type="text/template") in the html and then grabbing it with jQuery's .html() function, but I found this way easier. Commented Sep 10, 2014 at 18:22
  • Sorry I have other thing to say, look in the your fiddle and choose type lets say (woman) then select none in it again (dont select) it will show error obj1[selection] is undefined . it happen same thing on other selctions . How can i fix this Please? Commented Sep 10, 2014 at 20:47