jquery - appendTo() is not a function? -
I thought this code should work, but it was not, could anyone explain?
$ ("#addLinkLayout input.comment, #addLinkLayoutInput.ink"). Each (function () {$ (this) .val (). AppendTo ('div # links');});
It says that $ (this) .val (). AppendTo ()
is not a function.
attachment
can only be applied to jQuery objects
Instead, try it:
$ ("# addLinkLayout input.comment, #addLinkLayoutInput.ink"), but val
.each (function () {$ ('Div # links'). Attachments ($ (this) .val ());});
Comments
Post a Comment