Select dropdown value

<script type="text/javascript">

var w = document.tvltNewPost.tvltNewCategory.selectedIndex;
var selected_text = document.tvltNewPost.tvltNewCategory.options[w].text;
alert(selected_text);

</script>

0 Comments

You must be logged in to post a comment.