I'm trying to build by own function which can set the data of a textbox by showing a div which has the options and allowing the user to click on it to set it. Ive soo far done:-
And it works fine to the point of showing the div however the user cannot select the 'hello' div to set it.
Im a bit stuck on how to keep the div showing but remove it if the user selects something else. Im trying to replicate other widgets like the datepicker and auto-suggest jQuery UI widgets, but mine has some requirements, so wanted to build from scratch.
Anyone got any suggestions on how I can accomplish this?