I wanted to populate a textarea or anything that looks like a list, with the items the guy selects from a dropdow. So I thought so, but I do not 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>