i used text avatar jquery for dashboard profile image avatar JS. when Jquery append <img /> tag dynamicly not getting profile avatar.below is sample script

    <img data-name="Steve" id='SteveID' class="profile"/>

    <script> 
            $('#SteveID').append('<img data-name="Jhon" id="JhonId" class="profile"/>');
    </script>   

    <script> 
        $('.profile').initial();
    </script>

That code will append the second image inside the first. I doubt that is really what you are trying to achieve.
If you look at the page source you'll see this:

<img data-name="Steve" id='SteveID' class="profile">
   <img data-name="Jhon" id="JhonId" class="profile"/>
</image>

If you want to place the profile image near the first image you will want to append it to the element, presumably a div, that contains the first image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.