Both the nodes have CorporateStaff as their id. Please give them a unique id, in fact, every element on the page must have a unique id.
Assuming you change their ids to CorporateStaff1 and CorporateStaff2
Please add this code snippet after the closing body tag.
Set PackageItemOption=oConn.Execute("SELECT * FROM prod_items,items WHERE prod_items.item_ID=items.item_ID AND pitem_live=TRUE AND dep_ID="&Request.QueryString("d")&" AND NOT pitem_ID=pitem_alt AND pitem_alt="&PackageItemHero("pitem_ID")&" ORDER BY pitem_pax,pitem_gross")If NOT PackageItemOption.EOF Then MainArea=MainArea&"<tr>" MainArea=MainArea&"<td height=15></td>" MainArea=MainArea&"<td height=15 colspan=4><a onClick='Toggle(this)' id='CorporateStaff' style='CURSOR: hand'><img src=http://www.gptouring.com.au/images/GPT/s-collapse.png height=15 valign=middle> <font size=2>Expand to upgrade your "&PackageItemHeroType("itype_name")&"</font></a>" MainArea=MainArea&"<div>" MainArea=MainArea&"<table width=100% cellpadding=0 cellspacing=0 border="&BorderOnOff&">" Do Until PackageItemOption.EOF MainArea=MainArea&"<tr onMouseOver=ChangeColor(this); onMouseOut=UnChangeColor(this);>" MainArea=MainArea&"<td height=40> "&ItemOptionDisplayName&"</td>" MainArea=MainArea&"<td height=40 width=72 align=center valign=center>" MainArea=MainArea&"<table width=72 height=36 cellpadding=0 cellspacing=0 border="&BorderOnOff&">" MainArea=MainArea&"<tr>" MainArea=MainArea&"<td height=36 background="&BrandDir&"/item-"&PackageItemOption("prod_items.item_ID")&".jpg style='background-size:cover;background-position: center,center'><a href=images/GPT/image.jpg><img src="&BrandDir&"/s-i-outline-zoom.png width=72 height=36></a></td>" MainArea=MainArea&"</tr>" MainArea=MainArea&"</table>" MainArea=MainArea&"</td>" If PackageItemOption("pitem_sold")=TRUE Then MainArea=MainArea&"<td height=40 width=200 align=center colspan=2><b><font color=red>SOLD OUT</font></b></td>" Else MainArea=MainArea&"<td height=40 width=50 align=center><input type=radio name="&PackageItemOption("pitem_ID")&" value="&PackageItemOption("pitem_gross")/PackageItemOption("pitem_pax")&"></td>" MainArea=MainArea&"<td height=40 width=150></td>" End If MainArea=MainArea&"</tr>" PackageItemOption.MoveNext LoopEnd If
Your code is not the complete page and I do not have any means to test ASP 3.0 code, so we might have to do some trial and error.
Please replace line 6 from your above code snippet with this one
Both the nodes have CorporateStaff as their id. Please give them a unique id, in fact, every element on the page must have a unique id.
Assuming you change their ids to CorporateStaff1 and CorporateStaff2
Please add this code snippet after the closing body tag.
Open in new window
Regards,Chinmay.