Javascript problème select onChange
Résolu/Fermé
f123b
Messages postés
7
Date d'inscription
lundi 8 juin 2009
Statut
Membre
Dernière intervention
5 septembre 2009
-
1 sept. 2009 à 04:52
f123b Messages postés 7 Date d'inscription lundi 8 juin 2009 Statut Membre Dernière intervention 5 septembre 2009 - 5 sept. 2009 à 16:11
f123b Messages postés 7 Date d'inscription lundi 8 juin 2009 Statut Membre Dernière intervention 5 septembre 2009 - 5 sept. 2009 à 16:11
A voir également:
- Javascript problème select onChange
- Telecharger javascript - Télécharger - Langages
- Please select boot device ✓ - Forum Windows
- Reboot and select proper boot device asus - Forum Matériel & Système
- Javascript void 0 c'est quoi ✓ - Forum Réseaux sociaux
- Please select boot device - Forum Windows 7
2 réponses
CaPiT
Messages postés
609
Date d'inscription
lundi 7 janvier 2008
Statut
Membre
Dernière intervention
21 avril 2010
51
1 sept. 2009 à 09:53
1 sept. 2009 à 09:53
Bonjour,
j'aurais fait un truc du genre (je n'ai pas testé le code il est peut-être à modifier):
j'aurais fait un truc du genre (je n'ai pas testé le code il est peut-être à modifier):
<form method="GET" name="form" action="product.php"> <select name="plusmoins" onChange="this.form.submit();"> <option <?php if(!$_GET["plusmoins"]){echo selected;} ?> value="default_ranking">defaut</option> <option <?php if($_GET["plusmoins"]=="totalprice_ascending"){echo selected;} ?> value="totalprice_ascending">prix croissant</option> <option <?php if(($_GET["plusmoins"]=="totalprice_ascending"){echo selected;} ?> value="totalprice_descending">prix decroissant</option> </select> </form>
f123b
Messages postés
7
Date d'inscription
lundi 8 juin 2009
Statut
Membre
Dernière intervention
5 septembre 2009
5 sept. 2009 à 16:11
5 sept. 2009 à 16:11
Merci beaucoup, ca marche très bien.