Published in: JavaScript
function setSelectListToValue(value, selectId){ var i, si, v, args=setSelectListToValue.arguments; if ((obj=document.getElementById(args[1])) != null){ v = args[0]; for(i=0; i<obj.length; i++){ if(obj.options[i].value == v){ si = i; } } obj.selectedIndex = si; } }
You need to login to post a comment.
