Suppose I have this webpage. I would like to pass a JS command to in the console to select "All languages".
The button is an input with onchange="widgetEvCall('handlers.updateFilter', event, this);
This is the complete chunk of html for the botton:
<input id="filters_detail_language_filterLang_ALL" type="radio" name="filters_detail_language_filterLang_0" value="ALL" onchange="widgetEvCall('handlers.updateFilter', event, this);">
I would like to use the handlers.updateFilter
function to pass the id of the filter I want to select (id="filters_detail_language_filterLang_ALL"
) and "simulate" that the button is clicked runnig handlers.updateFilter
in the chrome console.