How to assign/set attribute in JQuery
<p>I am working on other developer's code and i am not an JQuery expert so i need little help.</p>

<p>the below code works fine if i have multiple employeeIds but since the scanrio has changed and i will be having only one employeeId so my question is how can i replace the <code>each function</code> with a single node. </p>

<p>each/map:</p>

<pre><code> var employeeid = $("#&lt;%= gridview1.ClientID %&gt; [id*='myDiv']").map(function () { return $(this).attr("EmployeeId"); }).get().join(',');
</code></pre>

<p>i attemp to write:</p>

<pre><code> var employeeid = 'A23433';
</code></pre>

<p>but the problem is that i need a way to set the attribute (EmployeeId)</p>
