JavaScript Tutorial JavaScript Examples CSS Tutorial HTML Tutorial About Us

Javascript Validation


This script is to validate which item is clicked by the user.

<script>

function set (form) {
item=form.list.selectedIndex
output=form.list.options[item].text
alert(output)
}

</script>




Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy