Forums

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

Home Forums JavaScript If input has value higher than 0

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42594
    chrisburton
    Participant

    I have a search input where I’d like a span to fadeIn when a user starts typing. Would anyone mind helping me out with this?

    http://codepen.io/chrisburton/pen/zgwis

    #123951
    chrisburton
    Participant

    Thanks very much @hompimpa. I’ll have to take a look at it when I’m feeling a little better.

    By the way, what site can I use to credit you for the code?

    #123955
    chrisburton
    Participant

    @Hompimpa For some reason I’m getting a conflict with the two codes together.

    The first code is for clearing the input and the other is for fading in the button when the user starts typing.

    http://codepen.io/chrisburton/pen/zgwis

    Edit: My fault. I forgot to add the hidden class. Although I do have to hit backspace in the input for it to fade out.

    #123993
    chrisburton
    Participant

    Works like a charm @hompimpa. Good work. I’m crediting you regardless, I just won’t have a URL to put for you. Thanks again.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.