954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

html select option with input field

Good day, I have a problem here: is it possible to put an input field into option such as this?

<select>
	<option><input type="text" value="aa"></option>
</select>

(This is not working, any suggestiuon on how to refine it for it to work?)
Any help will be appriciated.

lps
Junior Poster
117 posts since Jul 2011
Reputation Points: 13
Solved Threads: 22
 

nope, this will not work.
you can create a "select" element with javascript or css3 using div elements and in these you could have input-elements like: for example:

<div id="select">
 <div id="active"><!--active option--></div>
 <div id="dropdown">
  <div class="option"><input type="text" value="aa" /></div>
 </div>
</div>

this has to be designed with css. you could use the :hover effect

-Agarsia

Agarsia
Junior Poster
114 posts since Feb 2011
Reputation Points: 10
Solved Threads: 25
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: