I've been using this code to move ImageId to jCrop
But _ImageId
variable is given by reference.
How can I give _ImageId
variable to the jCrop by value?
var _ImageId = 0;
$(document).ready(
function(){
$('.page .image').attr("id", function(){
_ImageId = $(this).attr("id");
return $(this).attr("id");
}).Jcrop({
ImageId : _ImageId, // my problem is here , when _ImageId change , all of them will change
onSelect: Page_ImageSelected
});
}