title: Getting Id of Ribbon Button In CRM 2011
body: <p>I created one javascript in which i want to hide ribbon <code>Reactivate Lead</code> button depending  on some condition.</p>
  
  <p>I got the Id of the button by pressing F12 on form which is <code>lead|NoRelationship|Form|Mscrm.Form.lead.ReactivateLead-Large</code> .</p>
  
  <p>In jscript , to get that button -</p>
  
  <pre><code>document.getElementById("lead|NoRelationship|Form|Mscrm.Form.lead.ReactivateLead-Large");
  </code></pre>
  
  <p>but I am not getting that button, its giving me null .. I am not getting what is the problem . please let me know if anybody has suggetions.</p>
  
  <p>thanks</p>