I want to use field variable in the below array structure.
var field = $(this).attr('field');
alert(Drupal.settings.taxonomy_fancybox.{field});
Drupal.settings.taxonomy_fancybox shows the following in the console
field_fancybox
:
{vocabulary: "category", node_type: "page", field_name: "field-fancybox"}
field_fancybox_2
:
{vocabulary: "tags", node_type: "page", field_name: "field-fancybox-2"}