$(function() { if(visibility == 'public') $("#visibilitypublic").parent().append(publicTip); });