Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post

    Html inside <input

    Hi guys. I'm having a problem here which i can't solve.
    Ive seen it on Facebook, and there is a jquery plugin called USERBOX which got a function that does it too. So i hopes that someone knows how!

    I would like to be able to render HTML inside a <input type="text"> fields value. Like

    <ul>
    <li id="Item_1">User 1</li>
    <li id="Item_2">User 2</li>
    </ul>

    which will give me too boxes with the bg colour i gave it in the CSS. Just like when you choose recipies in facebooks mail-system.

    Hope that you all understand.

    //Jonas

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,929
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    You can’t put any HTML inside an input. I have no idea how Facebook’s mail system looks like but you can only put input elements inside the list items you showed above. However, I’d have to ask why it has to be an input at all? What are you trying to do?

  • #3
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post


    That is a normal <input type="text" field. I can't figure out from the code how it's done.

    regards
    //Jonas


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •