title: JQuery: How to write if attr(left) is equal to 0px?
body: <p>I need to check if an elements left positioning is equal to 0px but am unsure how to go about it.</p>
  
  <p>So far I have: </p>
  
  <pre><code>if($('#slide-panel').attr(left) == '0px'){
  
  //do something
  
  };
  </code></pre>
  
  <p>But I am not sure of how to make the syntax work.</p>
  
  <p>Any advice would be appreciated! Thanks</p>