jeudi 10 septembre 2020

ajax img tag setup issue

I am try to send image with src tag in ajax . But facing chlange with setup img Attribute in ajax . Here is my script . Please help me to set this line of script in src tag.

   <script type="text/javascript">
     $('#image-data').html(""+arr[2]);
    </script>

I am trying to achive this line of code but faciing chalange .Please help me to correct this. Thanks

$('#image-data').html('<img src=""+arr[2]>');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire