Run jQuery function with Dom Element

Run jQuery function with Dom Element

by Adi Jaya

HTML

<article></article>

JavaScript

//jquery code

$('article').html('<h2>Test 123 <button>Click Me</button></h2>');


$('h2').on('click','button',function() {		
	$('h2').css({'color':'blue'});
});