title: unbind all click bound to elements classes
body: <p>I want to unbind all clicks binded to an element via its classess</p>
  
  <p>The elements are like this :</p>
  
  <pre><code>&lt;i  class="icon-edit edit &lt;%=AgentData.isSortiDeService(agent)%&gt;" alt="&lt;%=noteEchelle.getIdNote()%&gt;"&gt;&lt;/i&gt; //where isSortieDeService is a java method which returns a 
  </code></pre>
  
  <p>string , the values of this string may be '' or 'isSortiDeService' </p>
  
  <p>given that element like this may have some clicks binded like  :</p>
  
  <pre><code>//******************modifier la notation
         $(".edit").live("click",function(){ 
          var idNote = $(this).attr("alt");
           $("#divBody").empty();
           $("#divBody").load("&lt;%=path%&gt;/situationAdministrative/notation/editNote.jsp",{idNote:idNote});
           $("#divTitle").empty();
           $("#divTitle").append('Modifier la note');
           $("#div").css('width','650px');
           $("#div").modal({ dynamic: true });
            });
  </code></pre>
  
  <p>so i tried this </p>
  
  <pre><code>       $(".isSortiDeService").die('click').unbind("click").off("click").click(function(){
     alert("Cet agent n'est plus en service. Vous ne pouvez plus effectuer cette opération");
      });
    });
  </code></pre>
  
  <p>the click is not ubinded because it is binded to onther class even if it is the same element .</p>
  
  <p>so i tried onther solution </p>
  
  <pre><code>  $('*').each(function(){
         if($(this).hasClass("isSortiDeService"))
         { $(this).die('click').unbind("click").off("click").click(function(){
         alert("Cet agent n'est plus en service. Vous ne pouvez plus effectuer cette opération");
          });
  
         }});
  </code></pre>
  
  <p>this also not working ,and the click is fired </p>
  
  <p>i will express the problem like this : i have an element with multiple class, if my element has a specific class , i want to unbind all the clicks binded to others classes , but apprently unbind or off or die works for the same selector : so the same classe </p>
  
  <p>any suggestion?</p>