[jQuery] Getting a fragment of ajax html and writing to the page
Hi, can anyone tell me how I can get part of a web page downloaded
with $.get()? I thought it would be easy but ohhh no :( Here's a
snippet:
$("a[@class=popme]").click(function()
{
$.get($(this).attr("href"), function(popUpData)
{
var popupContent = $(????);
$.modal(popupContent );
});
return false;
});
At '????', I basically want to find the contents of a div in popUpData
with an ID of foo as a string I can pass to a modal pop-up. The web
page fetched is HTML 4.01 Strict.
Thanks for any help,
Richard
P.s. $.modal is: http://www.ericmmartin.com/projects/simplemodal/