"div/p" is supposed to get paragraphs that are children of divs. It's
XPath syntax, which jQuery no longer supports.
Try
var dom = $('div > p', data);
or
var dom = $(data).find('div > p');
instead.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
"dom is always null "
What the heck is the selector "div/p" supposed to get?
On Apr 4, 5:40 am, Albert wrote:
> $(document).ready(function() {
>
> $.ajax({url: '/page/test.html',
> type: 'GET',
> dataType: 'html',
> timeout: 5000,
> erro
2 matches
Mail list logo