This works:

$display="<select name='selDiscId' onclick='alert(this.options[this.selectedIndex].value;'>";
(The selected value is displayed).

This doesn't:

$display="<select name='selDiscId' onclick='window.location=\"EditCd.php?id=this.options[this.selectedIndex].value\";'>";
(The text "this.options....." is transmitted as the GET parameter).

Can someone please show me how to get the selected value as the GET parameter using window.location.
Thanks
Tony