Why does IE complain about this js line?
<p>Why does IE complain about this javacript call?</p>

<pre><code>$.get("profile_completeness.php?id=&lt;?php echo($user_id); ?&gt;", function(data) {
    var percentage = data.match(/id="percentage_complete" value="(\d+)"/)[1];
    alert(percentage);
})
</code></pre>

<p>This works fine in Chrome, and FF but IE throws an exception.</p>

<p>Here is the error I get:</p>

<pre><code>Unable to get value of the property '1': object is null or undefined.
</code></pre>

<p>If I remove the var percentage line the error is gone.</p>

<p>Any ideas why?</p>
