Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 208 Bytes

change_href.md

File metadata and controls

9 lines (7 loc) · 208 Bytes

Change link href

$('a.menu').attr('href', '/page1')
  • a.menu - needed link element selector
  • attr - will set given attribute
  • 'href', '/page1' - will change href to /page1