Java script problem

dibyam

New member
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.
 
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.
 
Last edited:
< 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.
 
Back
Top