How to apply jQuery on ajax requested contents

Here I am going to show you how you can apply jQuery or Javascript on ajax requested contents.

This snippet was written for WordPress.

(function($) {
	
	$( "#container_mzml" ).load( "http://source-goes.here/pagename div#targeted_id" );
	//This will load contents of pagename into container_mzml
	$(document).ajaxComplete(function(){
		if ( $(window).width() < 739) {    //Here I've defind the screen width;  
			
		} 
		else {
		}
	})
	
})( jQuery );