Forums

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

Home Forums CSS Text Change Trick with Html or CSS?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44257

    This might sound strange, but I am making a conceptual website and I need the user to be able to click into a text input field and enter text but control what the result is.

    For example, maybe I would type in “apple” but the text that would show up would be “orange” (or whatever). I really appreciate any help! Thank you so much.

    #132480
    pixelgrid
    Participant

    no way to detect user input with css. You can to this with javascript binding the keyup event with the text input and adding one letter at a time while you clear the user input.
    this can get you started http://codepen.io/anon/pen/vgpmk

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