html inside input box

G

google

Hi,

Is there a way I can use html inside input box? I am making a
autocomplete box and need to group tags visual (by appling similar
color)...

Abdul
 
R

RobG

Hi,

Is there a way I can use html inside input box? I am making a
autocomplete box and need to group tags visual (by appling similar
color)...

That is an HTML question, it has nothing to do with javascript. But
anyway, if you mean something like:

<input type="text" value="<b>name:</b>" ...>


and expect the text "name:" to be bold, then the answer is no. The
value of a text input is CDATA that is not parsed by the browser, it is
treated as literal text.

<URL: http://www.w3.org/TR/html4/interact/forms.html#adef-value-INPUT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top