jQuery使ってます。
jQuery使ってます。
$(function(){$('.textimage').each(function(key,value){var name = $(this).children('dt').text();if( name == 'n'){$(this).find('dd img').remove();$(this).children('dt').empty();} else {$(this).find('dd img').attr('src','common/img/' + name + '.jpg');$(this).children('dt').empty();}});});