Javascript undefined attribute
<p>I'm new to Javascript and I got this:</p>

<p>I have a <code>GridView</code> with the following event:</p>

<pre><code>protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
  foreach (TableCell c in e.Row.Cells)
  {
    c.Attributes.Add("full","false");
  }
}
</code></pre>

<p>And in my javascript I have an <code>onClick</code> event for every cell:</p>

<pre><code>if(source.full="false")
{
  ...
  source.full="true";
}
else
{
  ...
  source.full="false";
}
</code></pre>

<p>Why is it that <code>source.full</code> is always <code>undefined</code> on the first click?</p>
