I\'ve the following code which will take an array and append to the page dynamically a QR code with the text being an element in the array.
$(document).ready(fun
The selector where you append the image to the body is wrong. You are selecting all existing img elements, whereas you want to create a new one. Try this:
append
img
var $img = $('').attr('src', qrUrl + $.param(options)).appendTo('body');
Example fiddle
Note: $('') not $('img').
$('')
$('img')