jQuery extract hyperlinks with specific href

Submitted by:Jhon Smith

Date added:31 March, 2012

Category:jQuery

jQuery example code for extract hyperlinks with specific href

Tags: extract hyperlinks

Code Snippet:

//output all links on page that start with "http://www.xentrik.net/"
$('#j4u-post a[href^="http://www.xentrik.net"]').each(function (i,v)
{
console.log($(this).attr('href'));
});
 
 

Comments