jquery get attribute value when property is not set
<p>I simply want to get the current value of a field's attribute.</p>

<p>This field has a default value like:</p>

<pre><code>&lt;input validation="defaultValue" /&gt;
</code></pre>

<p>When i want to get the validation attribute, i don't know if it has been updated before or if this is still the default value.</p>

<p>So the property get with <code>prop()</code> return <code>undefined</code> when the property is not set (not yet updated), and the <code>attr()</code> method return always the default value (that's not true actually for maintainability but that will be in the future).</p>

<p>Is there a method that check:</p>

<p>if property is set => return property
else return attribute</p>

<p>Thanks</p>
