I\'m stuck with a situation where my DOM elements are generated dynamically based on $.getJSON and Javascript functions for this elements are not working. I\'ll
$.getJSON
the easiest way is to add this after you add/generate your DOM
$('script[src="site.js"]').remove(); $('head').append('');
of course your js function that generates DOM needs to be on another file than your site.js