Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Replacing text by clicking a button

  • This topic is empty.
Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #112387
    chrisburton
    Participant

    @thejive You’re still using `href=”#”`

    You should be using `href=”javascript:void(0)”`

    #112388
    thejive
    Member

    Done! I’m having to copy your replies into TextEdit to read them haha! Thanks!

    #112395
    ideaprison
    Participant

    Instead of the href=”javascript:void(0)” since its icky and shows when people hover the link you should just use

    example:

    $(“a”).click(function (e) {
    e.preventDefault();
    });

    #112399
    thejive
    Member

    Where do I put that code? In the site HTML? And what do I use for the a href?
    hashtag or a blank target just takes me back to the Cargo Collective homepage.

    #112403
    thejive
    Member

    Woah this forum is really strange. Now my post just formatted in a weird way (at least on my screen).

    #112404
    chrisburton
    Participant

    @thejive put that code just below your last jQuery code.

    #112405
    Paulie_D
    Member

    I’ve edited it…the forum works oddly if you use a #hashtag

    At least sometimes :)

    #112406
    chrisburton
    Participant

    I think the issue is because of the base href but you can’t remove that as it might effect other things.

    #112424
    thejive
    Member

    I’m probably going to be banned for going on and on about this. But i’m STILL at a loss! I’ve summarised my attempts everything here: http://support.cargocollective.com/customer/portal/questions/580760-jquery-script-implementation

    #112426
    ideaprison
    Participant

    Sorry, i noticed it too late that “return false” was already in one of the examples/replies before mine!

    #112427
    chrisburton
    Participant

    @thejive Try asking this question on http://stackoverflow.com if no one else here can help.

Viewing 11 posts - 16 through 26 (of 26 total)
  • The forum ‘CSS’ is closed to new topics and replies.