Jquery .wrap(), Anchors And Ie February 15, 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 JugaAnchor Around Table - Not Working In OutlookGetting An Element To Overlap An ImageCreating A Checkbox In Javascript And Dhtmlx Share You may like these postsClicking On A Picture Thumbnail And Expanding To The Center With JavascriptJquery Clone Date Picker Not WorkingFading In And Out An Image Using JavascriptHow To Prevent A Page From Jumping To Top When Showing Or Hiding Elements Using Jquery Fade Option Post a Comment for "Jquery .wrap(), Anchors And Ie"
Post a Comment for "Jquery .wrap(), Anchors And Ie"