Java script problem

hanks for your suggestions friends. this problem
is solved.a new problem is coming in javascript when i use this.value in
a function call.example onchange=“test(this.value)”.please help me.

It will not be possible to help you with so few details…

i am using a select menu.where i want to use onchange event and call a function test with selection value.
so i am using < select onchange=“test(this.value)”>< option>1< option>2</ select>
but this.value is not working in exeoutput.please help me.

Don’t see what could be the reason, but without the full code, it is complicated anyway

< script>function test(val){alert(val);}</ script>
< select onchange=“test(this.value)”>< option>1< option>2</ select> here variable val get no value from this event.but when i send a static value in test function val variable gets it.

You cannot get value of select with “this.value”. You need to use instead: “this.options[this.selectedIndex].value”

still this option is not working in exeOutput