Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

fake programming question

Name: Anonymous 2008-11-13 12:39

i want a drop down list in a form to submit onchange and have some javascript submit the value of each option as an #anchor in the GET

Name: Anonymous 2008-11-13 12:48

Read SICP.

Name: Anonymous 2008-11-13 14:47

<select onchange="var f = document.getElementById('fake'), url = ''; for(var i = 0; i < f.options.length; i++) { url += '#' + f.options[i].value; } location.href = url;" id="fake">
<option value="a1">example</option>
<option value="a2">example</option>
</select>

Name: Anonymous 2008-11-13 15:10

>>3
DON'T HELP HIM!

Name: Anonymous 2008-11-13 15:11

>>4
You have beet trolled.

Name: Anonymous 2008-11-13 16:49

>>5
DON'T HELP HIM[i]![i]

Name: Anonymous 2008-11-13 22:25

>>6
STOP HELPING HIM!!!!

Name: Anonymous 2008-11-14 3:08

>>3
ur a javascript god

Name: Anonymous 2008-11-14 11:42

i did this <form id="select-os" method="get"><select id="os" onchange="var f = document.getElementById(\'os\'), url = \'\'; url +=
 \'#\' + f.options[f.selectedIndex].value; location.href = url;">

Name: Anonymous 2010-11-26 20:20

Name: Anonymous 2011-01-31 21:17

<-- check em dubz

Name: Anonymous 2011-02-04 18:22

Don't change these.
Name: Email:
Entire Thread Thread List