Cannot append to unordered list in select's change function??
- $("#version_select").change( function() {
- $('#listval').append('<li>'+ $(this).val() +'</li>');
- });
Very simply: I have an unordered list on my page with the id of "listval" and a dropdown menu with the id of "version_select". I know that I am getting the value in the change function because I can alert it out and see it using " alert $(this).val(); ", but I can not append it to my list. Why not? How?
Thanks,
Mark