title: using Jquery button unable to disable the button
body: <p>Iam not able to disable the button using jquery. I tried all the possible options but it is not working. Iam able to access and display the other properties of button, but disabling is not working. Iam using Jquery 1.8 and browser IE 7. Below is the code. Please help me in this regard.</p>
  
  <pre><code>&lt;input type="button" class="actionButton" style="display: inline;" onclick="addCompany();" id="addCompanyId" value="Add country1111"&gt;
  
  function setParentCompany(comId) {
      $('#parentCompanyDomain').val(comId);
  
      /* var buttonObj = $("#addCompanyId");
      //alert("buttonObj"+ buttonObj[0].id);
      buttonObj.setAttribute("disabled",true);
      //alert("button disabled value11122::"+buttonObj[0].attr('disabled')); */
      alert("id::"+$('#addCompanyId').attr("id"));
      alert("class::"+$('#addCompanyId').attr("class"));
      alert("value::"+$('#addCompanyId').attr("value"));
      alert("disable::"+$('#addCompanyId').attr("disabled"));
  
      $('#addCompanyId').attr("disabled",true);
  
  } 
  </code></pre>