I need to deffer to kind of click events on radio button. The First is when some other radio button was checked, then necessarily radio button is checked. The second situation when necessarily radio button is checked, then user click on the same button again. I know how to get the value of the checked button:
$('input[name=group1]:checked').val()
But how to get the previous checked button value?