treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How to hide or replace a link using javascript:void(0).

  • Sir i want to ask you that how can i hide a link using javascript and make a funtion to call that link from a sql database.

  • You can use jQuery to hide a link(s):

      $(function() {
          // hide by class
          $('a.class-of-link-to-hide').hide();
    
          // or hide by ID
          $('#id-of-link-to-hide').hide();
      });
    

    I don't know what you mean about "make a function to call that link..."

    What are you trying to accomplish?