Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#productSelector").change( function(){
- productID = $(this).val();
- $.post(
- '/action/getProductImages.php',
- { productID: productID },
- function( data ){
- $("#productImageholder").children().fadeOut(500,function(){
- $(this).remove();
- $.each(data.images, function(i,image){
- var newImg = $("<img/>").wrap("<a href='#TB_inline?height=400%&width=600%&inlineId=productImagePopup-edit' class='thickbox'></a>");
- newImg.attr({
- src: image.src,
- title: image.title
- }).hide().appendTo("#productImageholder").fadeIn(500);
- });
- $("#imageUploader input[name='productID']").val( data.productID );
- });
- },
- 'json'
- );
- });
Add Comment
Please, Sign In to add comment