1 Replies - 242 Views - Last Post: 18 November 2018 - 10:20 AM

#1 salv236   User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 92
  • Joined: 04-January 15

jquery change of text on anchor not working

Posted 18 November 2018 - 06:50 AM

I am trying to add some jquery so that when i hover on the button the content changes, the cdn link to the jquery has ben inserted before the end of the closing body tag.
Below is the code to the html and the jquery:

<a href="mailto:[email protected]" class="header-email"> <i class="fas fa-at"></i> Email Me! </a>




$(document).ready(function(){
    $('.header-email').on("mouseover", function() {
        $('.header-email').text("[email protected]");
    });
}



Is This A Good Question/Topic? 0
  • +

Replies To: jquery change of text on anchor not working

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15358
  • View blog
  • Posts: 61,577
  • Joined: 12-June 08

Re: jquery change of text on anchor not working

Posted 18 November 2018 - 10:20 AM

F12 and check the console of your browser. It will tell you that you have a missing ')'.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1