Uncheck checkboxes conditionnal

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:


Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Post Reply
Posts: 1
Joined: Sat Apr 28, 2018 3:58 pm

Uncheck checkboxes conditionnal

Post by xXTimXx » Sat Apr 28, 2018 4:10 pm

Hi guys,

i'm web developper but pretty newbie on imacros.
I'm playing a browser game (Travian), and i wanna improve a script i wrote for.
Thats the code for 1 <tr> of this table
My script is actually check the checkbox to check all the elements of this table. But to improve it, i need to uncheck some of them.

The condition is on the class of the element img on the element td 'lastRaid' of each tr.
If class contains 'iReport1' like in the exemple, i neednt uncheck, else i need that checkbox unchecked.

Can someone help me?

Thx to read and help, and sry for my bad english
Post Reply