jquery insert html in element
jQuery should always be in a
. I would probably make your function like this: ("addMatch").click(function() (this).parents(tr:first).before(
) return false ) Using jQuery, we can easily manipulate replace, insert, remove elements within an HTML document and even create animation. In this post, we are going to take a look at how to create or insert new elements within DOM with the jQuery Append method.