Advertisement
es-sam

JavaScript Example

Jun 21st, 2021
1,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.20 KB | None | 0 0
  1. <script>
  2. $('#element1').prepend('<a href="http://www.bing.com">This is the added text</a>');
  3. $('#element1 a').text('Change this text');
  4. $('#element1 a').prop('href', 'http://www.google.com');
  5. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement