aw_support
11/5/2019 - 9:45 PM

Attribute

// Change attributes of HTML element
(function ($, Drupal) {
$(".target-class").attr('attribute', 'value');
})(jQuery, Drupal);

// Example: Opening links in new tab or new window
(function ($, Drupal) {
$(".field-name-field-linkedin .field-item a").attr('target', '_blank');
})(jQuery, Drupal);


$(document).ready(function(){
$('#menu-59609' ).attr( "target", "_blank" ); 
});