It may be something similar to these examples but with only one main item. and manipulate with jquery each "li" and that action taken
example 1 | example 2 | example 3 | example 4
edition answer: this is done with css. is all contained in a div -> input + menu. for the input is removed border styles and background color is the same as the container div.