HTMLファイルを呼び出してロードしています。このファイルには3つ<div>
のタグが含まれています。最初のものは1つのコンテナにロードされます。2つ目は別のもので、3つ目です。これが私のajaxクエリのコードです
$.ajax(
{
url: 'files/' + href,
async: true,
success: function(XML){
console.log("It's a success");
var xml = XML;
var desc = $(xml).find("div").eq(0).html();
$("#listView .list_detail:eq(0)").html(desc);
var rule = $(xml).find("div").eq(1).html();
$("#listView .list_detail:eq(1)").html(rule);
var em = $(xml).find("div").eq(2).html();
$("#listView .list_detail:eq(2)").html(em);
$("#listView .list_detail:eq(0)").slideDown();
}
});
しかし、そのhtmlファイルのロード中にエラーが発生します。
Uncaught Error: Syntax error, unrecognized expression: <div>
そしてすべてのhtmlファイルはのようなものです
<div> the list
<ul>3 rounds
<li>first round
<li>second round
</ul>
</div>
<div> data data </div>
<div> data data </div>`
どうしたの?聞き取れませんでした。