is callback after before() possible?

is callback after before() possible?

hi
is there a way to call a callback function just after a before() statement targeting the element just created to inject some more html code inside it?

Ex:
$(function(){
$('a.add').click(function(){
addCampo($(this).attr('id'));
return false;
});
});

function addCampo(type){
type == 'addFoto' ? ( $('p#bottoniAdd').before(someHtmlCode)) : ( $('p#bottoniAdd').before(someOtherHtmlCode));
}


Thanks Vitto