I am tryng this:

HTML Code:
<script>
function changePerPage () {
	var perPage = document.forms.pageForm.per_page.options[document.forms.pageForm.per_page.selectedIndex].value;
	alert('d'+perPage);
}
changePerPage();
</script>
my form name and id is pageForm
the select inside that form is name and id are both per_page

so why can't I get the selected value????

THANKS.