1
$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId' : '1234'
});
어떻게 태그의 현재 ID로 productId를 전달할 수 있습니까?fancybox jquery에서 현재 ID를 매개 변수로 전달하는 방법
$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId' : $(this).attr('id')
});
주어진 코드가 작동하지 않습니다. 다른 아이디어.