Is it possible to bind click event if radio button is disabled? I want to pop up alert message when clicking the disabled button, anybody know how to do that? Thx :)
$("#radioBtn2").click(function() {
alert("I'm enabled")
});
$("#radioBtn").click(function() {
alert("I'm disabled")
});
#radioBtn #radioBtn2{
width: 15px;
height: 15px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<input type="radio" value="0" id="radioBtn" disabled>
<label for="radioBtn"></label>
<input type="radio" value="1" id="radioBtn2">
<label for="radioBtn2"></label>