jQuery add attribute method

jQuery Function

<script type="text/javascript">
 $(".block a").attr("target","_blank"); 
</script>
HTML

<div class="block">
  <a href="#">Button</a
</div>