Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button id="the_button" onclick="clicked()">↓ Source ↓</button>
- function clicked() {
- if ($("#the_button").html() == "↓ Source ↓") {
- alert($("#the_button").html());
- }
- }
- <button id="the_button" onclick="clicked()">Source</button>
- function clicked() {
- if ($("#the_button").html() == "Source") {
- alert($("#the_button").html());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement