FRIE,
<script>
function ch()
{
var sel = document.createElement('select');
var inp = document.getElementById('text');
inp.parentNode.insertBefore(sel, inp);
}
</script>
<form id='forma'>
<input type='text' id='text' onclick="ch()" value="click me">
</form>