开发者

jquery not showing up in IE?

开发者 https://www.devze.com 2023-01-03 16:02 出处:网络
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?

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

精彩评论

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