Hi,
I have used the line below in my app. But now I need to parse the html loaded before I show it. Whats the best way to get certain html elements.
$("#div").load("page.html");
Thanks
UPDATED
Now I am using this but having trouble geting the title attribute of a div with the id "div".
function get_title()
{
$.get("test.html", function(data) {
var data = $(data);
var title = $("#div", data).attr("title");
alert(title);
});
}
The html in the var data looks like this.
<div id="div" title="title example">
<p>
Content
</p>
<p>
Content
</p>
</div>
Thanks again