1
I wanted to fill in a textarea or anything that looks like a list, with the items that the guy selects from a dropdow. So I thought so, but I don’t know how to feed the list...
<textarea cols="1" id="lista">
<ul>
</ul>
</textarea>
<script type="text/javascript">
$(document).ready(function () {
$('#Chamada').change(function () {
var id = $(Chamada).val();
var url = '@Url.Action("MusicaAdc", "Chamada")';
$.post(url, { id: id },
function (data) {
$('#lista').append('<li>"' + value.Nome + '</li>');
});
});
});
</script>
All the data you will add in the list are returned at once in the post, or as the user selects, different calls are being made?
– Leo Letto