Strange question it is, indeed

I have a textbox
$('#t').textbox({...})
at runtime, in some particular condition, I need to attach to it a combogrid
$('#t').combogrid ({...})
and when I've selected a row, the combogrid must disappear with its own options,functions ad data, and textbook characteristics must remain .
is it possible?
thanks,
ric