Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <button id="the_button" onclick="clicked()">&darr; Source &darr;</button>
  2.  
  3. function clicked() {
  4. if ($("#the_button").html() == "&darr; Source &darr;") {
  5. alert($("#the_button").html());
  6. }
  7. }
  8.  
  9. <button id="the_button" onclick="clicked()">Source</button>
  10.  
  11. function clicked() {
  12. if ($("#the_button").html() == "Source") {
  13. alert($("#the_button").html());
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement