function populateselection(input) {
for (i=0;i < input.options.length; i++)
{ input.options[i].selected ? chosenoption=input.options[i].value : donothing=donothing }
window.status=chosenoption
}
<form name="selectinterface">
<select name="refererselect" onchange="populateselection(selectinterface.refererselect)">
<option name="topreferer" value="nothing">view stats per referer</option>
{% for referer in refererlist %}
<option name="{{ referer }}" value="{{ referer }}">{{ referer }}</option>
{% endfor %}
</select>
</form>
Blog Archive
-
►
2011
(19)
-
►
June
(7)
- In list of numbers, find each pair that equals 100...
- Binary search in Perl, using CGI.pm and Ajax
- python: generate list of random alphnumeric string...
- View source of a malware website: http://bzowwjcr....
- Java: Write to File: Copy Bytes: Copy Music
- aLife cellular automata with sound output
- ascii to hex converter. useful for iwconfig key pa...
-
►
June
(7)
Tuesday, June 30, 2009
Select option list access with Javascript
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment