Parsing returned HTML from jQuery AJAX request

后端 未结 7 1293
你的背包
你的背包 2020-12-01 14:01

What I\'m trying to do seems simple: get an HTML page through $.ajax() and pull out a value from it.

$(function () {
    $.ajax({
             


        
相关标签:
7条回答
  • 2020-12-01 15:07

    Why don't you just use the load method?

    $( "#wtf" ).load( "/echo/html #link" );
    

    Or, here's your fiddle fixed and working:

    http://jsfiddle.net/hcrM8/4/

    0 讨论(0)
提交回复
热议问题