Grow your CSS skills. Land your dream job.

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

  • # November 11, 2012 at 4:22 pm

    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.

    # November 11, 2012 at 10:26 pm

    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?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".