I want to reference these two buttons, but am unsure how to reference them to click them.
I found this statement:
do JavaScript document.forms[0]['btnI'].click() in front document
and want to change it reference this:
<li id="app_114228431971868" class="114228431971868">
<div>
<img class="gameimg" src="http://photos-g.ak.fbcdn.net/photos-ak-snc1/v27562/200/114228431971868/app_1_114228431971868_5955.gif" width="75" height="75">
</div>
<p>Knights of the Crystals</p>
</li>
Then I want to add a second command to press this button:
<div id="get-button"></div>
Then a third to reference this button:
<img width="125" height="50" alt="Ready!" src="http://gffstatic.oneringgame.com/images/btn-ready.png" id="ggg-readybut" style="display: inline; ">
I think you put the id where the btnI is in the javascript, but am unsure what to do for the other parts of the line.
To reference a DOM element by ID:
So:
And: