# Opposite of event.target

**URL:** <https://forum.kirupa.com/t/opposite-of-event-target/330880>\
**Category:** flash\
**Created:** [April 1, 2013, 8:48am UTC](https://forum.kirupa.com/t/opposite-of-event-target/330880 "2013-04-01T08:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarumitai](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sarumitai](https://forum.kirupa.com/u/sarumitai)\
**Post date:** [April 1, 2013, 8:48am UTC](https://forum.kirupa.com/t/opposite-of-event-target/330880/1 "2013-04-01T08:48:37Z")

</div>

I’m trying to compare two text boxes.  
I can trace the text from the clicked on target, but I need to compare it to the unclicked text box and I can’t think of how to without going in a huge circle of comparing everything. The text for each of two text boxes comes from an Array.

It’s basically which is a higher number box A or B. They array is always shuffled so there’s never a correct answer. By that I mean I have to compare each answer each time.

Sorry if this doesn’t make sense, I barely know what I am asking.
