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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -