Referencing explicit element id
<p>My javascript function looks like this - </p>

<pre><code>function updateSuccess(aEle) {
    //Here aEle doesn't have the correct id
    percIncrease.innerText = "Success";
}
</code></pre>

<p>in realizing it's bad to get the element this way, what would be a safer way of getting that element?</p>

<p>Some more info - 
Here is how I call it from C#..</p>

<pre><code>DropDownList ddl = new DropDownList();
ddl.ID = "ddlData1";

ddl.Attribute.Add("onchange", "updateSuccess('" + ddl.ClientID + "')";
</code></pre>
