<script type="text/javascript"> $("input[name='prop[FONT]']").change(function() { var font_preview_id=$(this).attr("id"); var font_detail_id=font_preview_id.replace('preview','detail'); $( ???? ).toggle("slow"); });
$('#'+font_detail_id).toggle("slow");