Skip to content

Instantly share code, notes, and snippets.

View EleaFederio's full-sized avatar
🎯
Focusing

Eleazar O. Federio EleaFederio

🎯
Focusing
View GitHub Profile
$('#quantity').val(data.product.quantity);
$('#details').val(data.product.details);
$('#price').val(data.product.price);
$('#category').val(data.product.category);
$('#status').val(data.product.status);
$('#due_date').val(data.product.due_date);
var preview_image_url = data.product.picture == null ? 'image_not_available.png' : data.product.picture;
$('#productPic2').attr('src', 'http://127.0.0.1:8000/images/'+preview_image_url);