0
I think the question sounds confusing, but calm down, I’ll explain it better. Type, on a given page, there are 2 Buttons with the same class, having as difference only their 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 the clicks using jquery, but I was unsuccessful as 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 very much in advance!
Thank you for the reply Daniel. That wasn’t what I was looking for, but it helped me with something else. Thank you so much.
– Isaque de Souza