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

Twitter like functionality

  • It is pretty cool how the label is placed on top of the input. On click, the label is not removed, but once you start typing the label .. 'disappears' - changes to the users inputted value.

    To no avail, I have tried several different ways to mimic this functionality.

    Is there a guru out there that has/can make this work?

  • 
    <input id="signup-user-name" class="text-input" type="text" maxlength="20" name="user[name]" autocomplete="off">
    <label class="placeholder" for="signup-user-name">Full name</label>