Bonjour,
j'ai écris un petit code en jquery pour faire disparaitre des options lorsque l'on change pour une valeur nulle (pour tout les éléments de la classe choisie), ça marche, mais impossible de faire disparaitre ces options au chargement de la page.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
  function BorderSize() {
      $(this).each(function (i) {
        if ($(this).val() == '0') {
			$(this).parent().children(".box_border_color").hide("fast");
			$(this).parent().children(".box_corner").hide("fast");
        } else {
			$(this).parent().children(".box_border_color").show("fast");
			$(this).parent().children(".box_corner").show("fast");
        }
      });
    }
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
$('.box_border_size').change(BorderSize); // ca marche
	BorderSize($('.box_border_size')); // à l'init cet appel ne marche pas :(
Merci de votre aide