Answer the question
In order to leave comments, you need to log in
How to emulate clicking on a radio button from a chrome extension?
In general, there is a content script in it such code:
$('#input_1').prop("checked", true).trigger("click").trigger("change");
Answer the question
In order to leave comments, you need to log in
"why?"
Read about how triggers work... pay attention to "Note:"
api.jquery.com/trigger
even if this script is inserted into the page itself (via the javascript protocol: ... or inject a new
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question