I'm working with a radio button and I can not trigger a trigger. Can anyone help me solve it?
$("input[name='estimate_method']").on('change', function() {
$(this).prop("checked", true);
$("input[name='do']").trigger("click");
});
Image of the situation ... if it works out I'll hide this Update Total and send a trigger on it. The html of the button is:
<button type="submit" class="button" name="do" value="Atualizar Total">
<span>
<span>Atualizar Total</span>
</span>
</button>
Itgoesinsidetheon("change") but does not trigger the action on the button. The goal is, when I click on a radio, it triggers the trigger in Update Total .