Lines Matching refs:id
53 Selectbox = function (id /*: String*/) { argument
92 if ((node = document.getElementById(id)) && node.tagName.toLowerCase() != 'select')
93 throw new Error('Node with supplied id="'+id+'" is not the <select> box.')
99 node.id = 'selectbox'+(new Date).valueOf();
462 this.getOption = function(id /* :Number */, p /* :String */) /* :String,Array */ { argument
463 if (!isNumeric(id) || id<0 || !node.options[id]) return "";
464 return isString(p)?node.options[id][p]:[text.value,node.options[id].value];
506 return id;
883 this.selectOption = function (id /* :Number */, force) { argument
884 if (!isNumber(id) || (!force && (id<0 || !node.options[Math.abs(id)]))) return false;
886 if (id >= node.options.length) {
887 id = node.options.length-1;
888 } else if (id < 0) {
889 id = 0;
891 node.options[id].selected = true;
892 options[node.options[id].__idx].selected = true;