$( HTML ) jQuery Demo

Run Demo

		
function Demo(){
		
	// Create a jQuery stack with new HTML element.
	var jSpan = $( "<span>New Span!</span>" );
	
	// Alert text of new span.
	alert( jSpan.text() );
	
}