es-sam

JavaScript Example

Jun 21st, 2021
1,323
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data