When I would like to remove my selected image, the field will not be clear.. I use the latest jQuery code of yours:
[code]
// Delete uploaded image
jQuery('.remove-image').click(function() {
var defaultImage = $(this).parent().siblings('.default_image').text();
jQuery(this).parent().siblings('.upload_image').val('');
jQuery(this).parent().siblings('.preview_image').attr('src', defaultImage);
return false;
});
[/code]
Hello Tammy,
When I would like to remove my selected image, the field will not be clear.. I use the latest jQuery code of yours: [code] // Delete uploaded image jQuery('.remove-image').click(function() { var defaultImage = $(this).parent().siblings('.default_image').text(); jQuery(this).parent().siblings('.upload_image').val(''); jQuery(this).parent().siblings('.preview_image').attr('src', defaultImage); return false; }); [/code]