ReportingAnalyst
MIS
Hi,
I have a UL element which is built dynamically from the DB. I have a unique id to each UL tag by building it through DB.
For instance,
I have assigned the ids the same as the id retireved by the DB - employee ID
Now how can I retrieve this value from the Javascript?
Thanks.
I have a UL element which is built dynamically from the DB. I have a unique id to each UL tag by building it through DB.
For instance,
Code:
<ul id="menu">
<li>
<input type="radio" checked id="empid" name="empid" value="4655">
<a href="#" class="a_style" onClick="s_Hide('4655', this)">TopMgr</a>
<ul id="4655" style="display: none">
<li>
<input type="radio" id="empid" name="empid" value="2109922">
<a href="#" class="a_style" onClick="s_Hide('2109922', this); return false;">Mgr1</a>
<ul id="2109922" style="display: none">
I have assigned the ids the same as the id retireved by the DB - employee ID
Now how can I retrieve this value from the Javascript?
Thanks.