Getting related tags of buttons
<p>I have number of buttons,and I had given tag values for all. Whenever I clicked on one button I need to get the related tags to that clicked button, related tags means up,down,right and left.</p>

<p>And I want to store first placed tag and do compare with the next placing tag whether it is in which place.</p>

<p>How to do?</p>

<p>Please help me in this.</p>
