Textfield with custom buttons

Textfield with custom buttons

How can I create a custom textfield with buttons? Can I use JQuery to do that? See my attached image for a explanation of what I need to do.