I have this function in jQuery
<script type="text/javascript">
$(document).on("ready", function () {
$("#area_tabla table tr td").click(function () {
var celda = $(this);
alert(celda.html());
console.log(celda.html())
});
});
</script>
What it does is that when selecting a cell in a table it shows me the value of that cell in a alert
. What I want is for that value to be assigned to <input>
<input type="text"/>