I want to create a custom control that have the same behavior as what Google+ and Facebook’s textbox have. The one that looks like it have child html elemens.
Please look at the following images:



Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would need to position the elements using css. Wrap the input and the other element which you want inside the input inside an element, set its
position:relative;, then define the element you want inside the input withposition:absoluteand set itstopandleftproperties to 0 or some other value which fits your purpose.example: http://jsfiddle.net/niklasvh/eZAU6/