jquery - prepend after element -
is possible prepend after element? example, prepending hyperlink div there element in there represented <a id="test">test1</a>
possible prepend test2 hyperlink after test1 hyperlink?
$('div[id='+id+']').prepend('<a id="test">test2</a>');
you can use .after()
place after other element, this:
$('#test').after('<a id="test2">test2</a>');
Comments
Post a Comment