开发者

inline tags not showing on ie using jQuery

I am facing problem rendering the contents of inline tag span. If i use div instead of span the contents are shown.

for (all objects in array) {

    var A = jQuery("<img src='xyz'>")

    if(some condition) {

        var b =  jQuery("<span class='X'>");
        b.append(A);
        A = b;
    }
    A.addClass(random);
}  // for ends

In Ie8 n 9 the object which has condition true is not displayed. whereas it is displayed in mozilla, c开发者_开发知识库hrome, and safari.

any pointers will be really helpful.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜