I have form, with select menu with only two options. I dont want to use submit button in this form.
When one of options is selected, 'onChange event' runs function. But user can click on already selected option again... again.. again... I need to run this function every time user clicked on already selected or actually selected option. Is there some solution to run function on actually selected option?
HTML
<select onchange="test()">
<option value="value2">option 1</option>
<option value="value1">option 2</option>
</select>
Javascript
function test(){
alert('OK');
}