Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-25-2010, 12:26 PM   PM User | #1
Trekz
New to the CF scene

 
Join Date: Apr 2010
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Trekz is an unknown quantity at this point
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
Trekz is offline   Reply With Quote
Old 10-25-2010, 02:47 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,615
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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?
__________________
Don’t click this link!
VIPStephan is online now   Reply With Quote
Old 10-25-2010, 03:37 PM   PM User | #3
Trekz
New to the CF scene

 
Join Date: Apr 2010
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Trekz is an unknown quantity at this point


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

regards
//Jonas
Trekz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:14 AM.


Advertisement
Log in to turn off these ads.