jquery - appendTo failing in IE and Firefox, but working in Chrome -


i'm hoping question hasn't been answered, i've been working @ while , have yet come solution.

i'm working code pulls button in front of picture people able click on, , works fine in chrome, not work in firefox or ie versions. i've tried several of tricks i've found none of them have defeated issue.

here code in question:

        editprofilepicture: function() {     var $ = this.jquery;      var $identity = $("#page_identity"),         $change = $("<a id=\"page_identity_change\"><span>change picture</span></a>");      //if our profile otherwise dont     if( $(".section-edit a").length )     {         var w = $identity.find("img").width() + 2;         w = (w < 165) ? 165 : w;          $identity.find("img").load(function(){             $change                 .css('width',  w)                 .attr("href", window.location.href.replace("profile","ajaxupload"))                 .appendto($identity);  // appendto not working              //edit picture               $('.com_members')                 .on("mouseenter", "#page_identity", function(event) {                     //$change.fadein("slow");                 })                 .on("mouseleave", "#page_identity", function(event) {                     //$change.fadeout("slow");                 })                 .on("click", "#page_identity_change", function(event) {                     editprofilepicturepopup();                     event.preventdefault();                 });         });      } }, 


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -