How to pass current id in fancybox jquery as a parameter
<pre><code>$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId' : '1234'

});
</code></pre>

<p>How i can pass productId as a current id of a tag.</p>

<pre><code>$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId' : $(this).attr('id')

});
</code></pre>

<p>Given code is not working,
So any other ideas.</p>
