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 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) UPDATE is the change function here and if block: Advancedsearch div:
$ tags.live ( "change", function () {/ * your content here} /});
$ (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
Comments
Post a Comment