Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getting href value in jquery

$('a').attr('href'); // gets the actual value
$('a').prop('href'); // gets the full URL always
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #href #jquery
ADD COMMENT
Topic
Name
1+6 =