Basically adding the <div> <element you want> </> <div> to the text it worked when I added it to the fiddle. It still sorts when you click inside the text field, so that may not be wanted. But if you explain the functionality your looking to implement, there could be a better solution.