Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getElementbyhref

jQuery.fn.getElementsByHref = function(str){ return $('a[href*="' + str + '"]'); };

$(document).ready(function(){        
   elems = $(this).getElementsByHref('example.com');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #getElementbyhref
ADD COMMENT
Topic
Name
2+1 =