title: xx.attr("display", "block").click(xxx) not working for me
body: <pre><code>$("code").attr("display", "block").addClass("block");
  </code></pre>
  
  <p>This code above is adding the class "block", and is ignoring the attr. How to do it then?</p>