Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $('#element1').prepend('<a href="http://www.bing.com">This is the added text</a>');
- $('#element1 a').text('Change this text');
- $('#element1 a').prop('href', 'http://www.google.com');
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement