HTML:
Kod:
<div style="width: 120px; height: 30px;">
<div id="selector">James Bond</div>
<input type="text id="textinput" style="width: 120px; height: 30px;" style="display: none;" />
</div>
jQuery
Kod:
$(document).ready(function(){
$("#selector").click(function(){
$("#textinput").val() = $("#selector").html();
$("#textinput").show(); $("#selector").hide();
})
});