English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have written the function in asp.net
function chkval(mval)
{
document.getElementById("TextBox1").innerText += mval;
}





JAVA SCRIPT:


Please note that in the





So once you change the element on that Dropdown, it will activate the chkval method. Now to parse the input You would need to access the options DOM and grab the selected index like the following:
var value = mval.options[mval.selectedIndex].value;

The whole script looks like this if you want to try it out

index.html
===========================================









===========================================

I hope I helped,
Good Luck

2006-12-05 02:22:00 · answer #2 · answered by ? 6 · 1 0

LOL, ASP.internet... no ask your self it doesnt paintings... and also you dont have any go-browser nicely matched code there both... first of all, you want some go-browser nicely matched code. second, you desire a uncomplicated to study the elements from the alternative list precise - no longer this IE certain thingy you obtain there third, you want to apply the call resources on the pick list as well - some browsers dont paintings with the identity resources, quite early variations of IE

2016-11-23 17:59:54 · answer #3 · answered by ? 4 · 0 0

You have provided only about 5% of the information we need to debug your page.

Rawlyn.

2006-12-05 02:03:19 · answer #4 · answered by Anonymous · 0 1

http://www.dougv.com/blog/2006/12/05/javascript-handling-multiple-selections-in-a-select-box/

2006-12-05 03:01:48 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers