<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$('input[type="text"]').focus(function(){
$(this).after('<input type="button" value="чудеса" />').remove();
});
});
</script>
<input type="text" value="чудеса" />