I think the question seems confusing, but calm, I will explain better. Type, on a given page, there are 2 buttons with the same class, having as difference only its value, and an attribute "origin". Example:
<input type='button' class='botao' onclick='envia(this,0);' origin='Roll < 49' value='Roll < 49'/>
<input type='button' class='botao' onclick='envia(this,1);' origin='Roll > 51' value='Roll > 51'/>
I tried to simulate clicks using jquery, but I was not successful since I clicked both buttons at the same time and not just one. My code:
var button1 = $('.clDicePlay').attr('value','Roll > 51'),
button2 = $('.clDicePlay').attr('value','Roll < 49');
button1.trigger('click');
Someone can help me. Thank you in advance!