views:

41

answers:

2

there is a file as data.html.How to display the contents of this file using javascript or jquery

Thanks..

+3  A: 

You could:

$('div#result').load('data.html');

please see details here.

Reigel
+1  A: 

jquery:

$('#somediv').load("data.html");
Rog