using a variable for "after( content )" property

using a variable for "after( content )" property


I have a script that determines a value based on page content. I want
to use that value as content with the "after( content )" property. Is
this possible and if so, how?
<script>
function myfunction() {
...
}
$(document).ready(function(){
    $(".xyz").after("myfunction's value");
});
</script>