$(document).ready(function() {
////
//// TableSorter
////
       {
       $("#myTable").tablesorter();
       }
//);
//////
       {
       $(".myClassTable").tablesorter();
       }
//);


       $(".nicolas").click(function() {
	      alert("Hello world!");
	         });

//       $(".formulaire").click(function() {
//	      alert("Hello world2!");
//	         });

       $("#id_syndicPro").change(function() {
               $("select option:selected").each(function () {
		//alert($("#id_lots").val());
		//alert(Object.keys($(this)));
		 if ($(this).text() == "Benevole") {
		    //alert("syndic benevole");
		    $("#id_lots").val("7");
		    $("#m25").hide();
		    $("#p25").hide();
		    $("#p50").hide();
		    $("#p75").hide();
		    $("#p100").hide();
		    $("#m15").show();
		    $("#p15").show();
		 //alert($("#id_lots").val());
		    //.change();
		    } else if ($(this).text() == "Professionnel") {
		    //alert("syndic pro");
   		    $("#id_lots").val("7");
		    $("#m25").show();
		    $("#p25").show();
		    $("#p50").show();
		    $("#p75").show();
		    $("#p100").show();
		    $("#m15").hide();
		    $("#p15").hide();
		    //.change();
		    }
               });
	      });
});



