https://jsfiddle.net/ycL2g1zn/3/
EDİT: Bu şekilde çözdük.
jQuery(document).ready(function($) {
$("img").click(function(){
var id = $(this).attr("data-source");
alert(+id);
});
});
https://jsfiddle.net/ycL2g1zn/3/
jQuery(document).ready(function($) {
$("img").click(function(){
var id = $(this).attr("data-source");
alert(+id);
});
});