views:

67

answers:

3
<select name='cmg_select'  onChange="javascript:window.location.href='index.php?'+this.value">
<option value='pening'> pening </option>
<option value='complete'> complete </option>
<option value='pening'> pening </option>
</select>

concatenation not working.....

+1  A: 

Remove the javascript: from the onchange attribute.

icktoofay
+1  A: 

Hi there,

Try this instead

<select name='cmg_select' onChange="window.location.href='index.php?'+this.options[this.selectedIndex].value">
<option value='pening' > pening </option>
<option value='complete' > complete </option>
<option value='pening' > pening </option>
</select>
Marko
+2  A: 
Night Shade