Jquery .wrap(), Anchors And Ie July 18, 2024 Post a Comment I am trying to wrap an anchor-tag around a block of code using jQuery (v1.2.6) by doing the follwing: var link = $('').attr('href','http://www.foo.bar'); $('#block').wrap(Solution 1: Updating my jQuery to 1.3+ did the trick.Apparently var a = $('<a>'); in jQuery 1.2.6 and earlier will create a chunk of code that IE considers invalid and therefore will refuse to insert it into the DOM tree. Baca JugaHow To Expand The Slice Of Donut Chart In Chartjs?Making Drag And Drop Upload With Less JavascriptHow To Show A Div On Top Of The Page In Fixed Position? Share You may like these postsNg-table Select Filters Show Double Blank Items In IEIf Conditional Statement Not Working With IE 11How To Mimic Word-break: Break-word; For Ie9, Ie11 And Firefox@keyframes Rules In Ie9 Post a Comment for "Jquery .wrap(), Anchors And Ie"
Post a Comment for "Jquery .wrap(), Anchors And Ie"