How to set the target of all anchor tags in the Loop using jQuery?

 Posted by vishalneeraj-24503 on 2/4/2015 | Category: jQuery Interview questions | Views: 1829 | Points: 40
Answer:

Write below code:-
$('a').each(function(){

$(this).prop('target','_blank');
});


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response