EventPrices += "<div class='after-price' id=divPrice>";
if (localStorage.getItem('SelectedRoleName') != null)
{
if (localStorage.getItem('SelectedRoleName').toString().trim() == "Admin") {
EventPrices += "<span class='price'><input type='radio' value='" + Item.PriceId + "' id='chkEventPrices' class='fa fa-check' name='chkEventPrices' title='" + Item.Price + "' onclick='CalculateTotal();'><label> $" + Item.Price + " </label> </span> ";
}
else {
EventPrices += "<span class='price'><input type='radio' value='" + Item.PriceId + "' id='chkEventPrices' disabled= 'disabled' class='fa fa-check' name='chkEventPrices' title='" + Item.Price + "' onclick='CalculateTotal();'><label> $" + Item.Price + " </label> </span> ";
}
} else {
EventPrices += "<span class='price'><input type='radio' value='" + Item.PriceId + "' id='chkEventPrices' disabled= 'disabled' class='fa fa-check' name='chkEventPrices' title='" + Item.Price + "' onclick='CalculateTotal();'><label> $" + Item.Price + " </label> </span> ";
}
EventPrices += "<span class='date'>After " + moment(Item.EarlyBirdDate).format("MMM DD, YYYY") + " </span>";
EventPrices += "</div></div>";
EventPrices += "<div><span id='spnEventPriceLiteralDetails_" + i + "'>" + EventPriceLiteraldetals + "</span></div>";
}
EventPrices += "</div><br/>";
i++;
});
This is my code.now if i click on particular radio button it is taking..i want if i click on box only radio button will select.