0
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++;
});
的任何地方更改單選按鈕的狀態這是我code.now如果我對特定單選按鈕單擊它是taking..i想,如果我在盒僅單選按鈕將選擇點擊。當我點擊的div
您可以發佈完整的代碼和修改你的話嗎?現在很混亂。 –
您可以使用標籤來達到此目的,請參閱https://stackoverflow.com/questions/1527721/using-label-for-on-radio-buttons – gjijo