Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get element by rel attribute

document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #element #rel #attribute
ADD COMMENT
Topic
Name
5+9 =