javascript - Dropdown Boxes cloned with JQuery don't retain the behaviour of the original -


What am I trying to do, clones 3 drop-down boxes and adds them under the original set .

Currently it works but the clone does not maintain the originality of the original set.

Check out the original value of the first drop-down box to populate a drop-down box, for the two lists below.

Bedding is down, but adding a clone does not seem to work for some reason that I can not understand, it works on the page on which I am working.

UPDATE

Thanks,

Thanks,

UPDATE

Advancedsearch div:

Use jQuery to keep the connection of the event With this new element alive, this event combines all current and future elements, where only a handler is defined for change, for the current elements only You will be bound (whenever you can make an element every time, but when it takes care of life Received, then it happens Why you)

  $ tags.live ( "change", function () {/ * your content here} /});   

UPDATE is the change function here and if block:

  $ (document) .ready (function () {$ tag = $ ("Select [name = 'tags']"); $ tags.live ("change", function () {$ operands = $ (this) .Parent (). (Select "[name =' operands ($ (This) .val () == "agent") ($ ($) () "$" = $ (this) .Parent (). $ ("Option = gt; = & lt; / Option & gt; "). Append to ($ operands); $ (" & lt; option & gt; = & lt; / options & gt; "). Attachment ($ operand); $ (this) .Parent ). (Select "[Name = 'values'].). Remove (); $ AppendTo ($ value); $ (" & lt; Option & gt; msword  ") A. $ ("Value"); $ ("& lt; Option> Ppt  Append To ($ value); $ (" & lt; Option> Image "). AppendTo ($ value); $ ("& lt; option> csv < AppendTo ($ value); $ ("& lt; option & gt; OOXML & lt; / option & gt;"). AppendTo ($ value); $ (" AppendTo ($ value); $ ("& lt; option & gt; wmf & lt; / option & gt;"). AppendTo ($ value);} < / Code>   

Comments