Esiste un modo per modificare tutti i collegamenti contemporaneamente con il tag dell'opzione?
Per esempio:Cambia tutti i collegamenti contemporaneamente
<select size="1" name="links" onchange="window.location.href=this.value;">
<option value=" http://website.com/1001/">Blue</option>
</select><br>
<select size="1" name="links" onchange="window.location.href=this.value;">
<option value=" http://website.com/2001/">Red</option>
</select><br>
<select size="1" name="links" onchange="window.location.href=this.value;">
<option value=" http://website.com/3001/">Green</option>
</select>
.... E così via circa 100 collegamenti.
Ora desidero modificare il collegamento website.com a m.website.com collegamento furthur rimane uguale. Come m.website.com/1001, m.website.com/1002
su un evento o cosa? – PHPglue
Usa un selettore - '$ ('opzione')', ['$ .each()'] (http://api.jquery.com/jquery.each/), e '.val *()' – Sean