$(function() { $('

Continue<\/a><\/p>').prependTo('#myride-1').find('a').click(function() { $(this).parents('div').eq(1).triggerTab(2); return false; }); });