function setup() { // Write your code here $.fn.moveUp=function(){ before = $(this).prev(); $(this).insertBefore(before) } } $.fn.moveDown=function(){ after = $(this).next(); $(this).insertAfter(after) } code example
Example: append after element jquery
$("p").after(" <b>You can write your Text Here </b>.");