title: JQuery - Select by attribute?
body: <p>This works in Opera but apparently nothing else.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;input type="checkbox" name="iphone" value="checked" checked="checked"  /&gt;
  &lt;input type="checkbox" name="photocart" value="checked" checked="checked"  /&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$("input[name=iphone]").attr('checked', 'checked');
  $("input[name=photocart]").attr('checked', 'checked');
  $("input[name=iphone]").attr('disabled', 'disabled');
  $("input[name=photocart]").attr('disabled', 'disabled');
  </code></pre>
  
  <p>I have also tried the following to no avail.</p>
  
  <pre><code>$("input[name|=iphone]").attr('checked', 'checked');
  $("input[name|=photocart]").attr('checked', 'checked');
  $("input[name|=iphone]").attr('disabled', 'disabled');
  $("input[name|=photocart]").attr('disabled', 'disabled');
  
  $("[name=iphone]").attr('checked', 'checked');
  $("[name=photocart]").attr('checked', 'checked');
  $("[name=iphone]").attr('disabled', 'disabled');
  $("[name=photocart]").attr('disabled', 'disabled');
  
  $("[name|=iphone]").attr('checked', 'checked');
  $("[name|=photocart]").attr('checked', 'checked');
  $("[name|=iphone]").attr('disabled', 'disabled');
  $("[name|=photocart]").attr('disabled', 'disabled');
  </code></pre>
  
  <p>No joy on any of them. Any ideas on how I can get this going?</p>
  
  <p>EDIT :- Epic failed on the copying of the HTML SORRY!</p>