This may seem to be duplicate question as people already asked such question and I read the answers too. But still this is not working for me. When I click on radio button, nothing happens. Below is my HTML code:
<div id="bank-details" class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<input type="radio" id="bank" name="pmt-method-radio" value="ACCOUNT" checked="checked">
<label for="bank">Checking Or Savings Account </label>
<input type="radio" id="card" name="pmt-method-radio" value="CARD">
<label for="card">Credit/Debit Card</label>
</div>
</div>
And below is my jquery code:
$('input[type="radio"]').click(function(){
alert("fired");
alert($("input[name=pmt-method-radio]:checked").val());
});