开发者

jquery not showing up in IE?

I am pulling info from an XML fi开发者_C百科le and the div class="long" works great but the anchor doesn't work or doesn't show up in IE. It works in all other browsers but NOT IE? any thoughts?

$(this).find('desc').each(function() 
{
    var url = $(this).find('url').text();
    var long = $(this).find('long').text();

    $('<div class="long"></div>').html(long).appendTo('#link_'+id);
    $('<a href="http://'+url+'"</a>').html(url).appendTo('#link_'+id);
});


$('<a href="http://'+url+'"></a>').html(url).appendTo('#link_'+id); ?

You left the closing bracket of your a tag open.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜