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

Popular posts from this blog

php - multilevel menu with multilevel array -

objective c - iPhone and it's wireless area -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -