In jQuery initialize the icon picker after append data. For example:
$('.social_icon').iconpicker();
I have done it using this code:
<script type="text/javascript"> $('#up_social_form').html('').append('You code is here'); $('.social_icon').iconpicker(); </script>
Here I first time remove children elements from a form then append elements and end of this code I have initialized icon picker. Hope it will be helpful for you.
Question and answer is powered by AnsPress.io