...

View Full Version : Html inside <input



Trekz
10-25-2010, 12: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

<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

VIPStephan
10-25-2010, 02: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?

Trekz
10-25-2010, 03:37 PM
http://www.brightmedia.dk/prove.jpg

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

regards
//Jonas



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum