View Full Version : Html inside <input

10-25-2010, 01:26 PM
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

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

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.


10-25-2010, 03:47 PM
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?

10-25-2010, 04:37 PM

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