[javascript]
var pattern = /^\/jqueryrain/;
jQuery(‘a’).each(function () {
var href = jQuery(this).attr(‘href’);
if (href != undefined && href.match(pattern)) {
console.log(href);
}
})
[/javascript]
[javascript]
var pattern = /^\/jqueryrain/;
jQuery(‘a’).each(function () {
var href = jQuery(this).attr(‘href’);
if (href != undefined && href.match(pattern)) {
console.log(href);
}
})
[/javascript]
© 2012 Best jQuery.