File input url prob.!
File input url prob.!
Im using the plugin, but it is not taking #img 's
src
becoz the src is created using readUrl, is there anyway to solve?
<img id="img" />
<input type="file" name="image_file" id="add_img"/>
function readURL(input) {
// Reading Url
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#img').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#add_img").change(function(){
readURL(this);
});
$('#img').jWindowCrop();
// PLUGIN CALL
Topic Participants
kumar.sravan031
jakecigar