If I understood you well, you just need to change your code to be some kind of user-defined function, not jquery on loading the body. Try it:
$.fn.myfunc = function(){
$('input[type="radio"]').click(function(){
if($(this).attr("value")=="yes"){
$(".box").hide();
$(".buttn").show();
}
if($(this).attr("value")=="no"){
$(".box").hide();
$(".buttn").show();
}
});
});
};
and when you pull the content from the database, after that you just call it with:
$. Fn.myfunc ()
,
$. fn.myfunc(var1, var2),
HTH