$(document).ready(function() {



$.ajax({url: '/page/test.html',
            type: 'GET',
            dataType: 'html',
            timeout: 5000,
            error: function(){
alert('error');
            },
            success: function(data){

            var dom = $("div/p",data);   //can I use jquery xpath
mechanism to parse the html data
$('#parse_result').append(dom);
            }
    });

HTML
<div>
    <p><a>test dom tree</a></p>
</div>








});

Reply via email to