title: JQuery custom attribute attr() or prop()
body: <p>In the initial part of my js code, I create  element as below:</p>
  
  <pre><code>$('&lt;input/&gt;', {
                 type: 'text',
                 class: 'edit country',
                 handle: '123456',
                 name: 'customer'
                 })
  </code></pre>
  
  <p>Then I add it to dom.</p>
  
  <p>Sometime later, I want to retrieve the info stored in this element:</p>
  
  <pre><code>$(input_element).prop('handle') #which return 'undefined'
  $(input_element).attr('handle') #which give me '123456'
  
  $(input_element).prop('name') #which return 'customer'
  $(input_element).attr('name') #which give me 'customer'
  </code></pre>
  
  <p>I want to know what is wrong with my prop() method for fetching 'handle'? Is that because 'handle' is not standard HTML attribute? </p>
  
  <p>I have read this post <a href="https://stackoverflow.com/questions/5874652/prop-vs-attr">.prop() vs .attr()</a>
  No big help.</p>
  
  <p>Anyone have a clue?</p>