if(location != null && location.length > 0)
        $(location).html(data);
      else
        $(linkTag).parent().before(data);