title: jQuery read only <div>
body: <p>I'm using mvc razor.</p>
  
  <p>I want to make all input in <code>&lt;div&gt;</code> "read only" if they do not have permission at the load of view.</p>
  
  <pre><code>if(!myUser.Permissions("View infor"))
      $('div.divMemberLookup :input').readonly(true);
  </code></pre>
  
  <p>I'm trying to use jQuery readonly plugin.</p>
  
  <p>What is the best way to do this?</p>