Ich habe drei Kontrollkästchen. Wenn ein Kontrollkästchen aktiviert ist, möchte ich andere zwei Kontrollkästchen deaktivieren. Wie kann ich es mit JQuery und HTML implementieren?Kontrollkästchen deaktivieren
Ich möchte es in Mvc implementieren 4.
Forenoon @Html.CheckBoxFor(x => x.FromDateforenoon, new {
style = "width:auto;",
id = "chkFromDate",
@onchange = "CalculatedaysOfLeave();"
})
Afternoon @Html.CheckBoxFor(x => x.FromDateafternoon, new {
style = "width:auto;",
id = "chkAfternoon",
@onchange = "CalculatedaysOfLeave();"
})
FullDay @Html.CheckBoxFor(x => x.FromDateFullDay, new {
style = "width:auto;",
id = "chkFullDay",
@onchange = "CalculatedaysOfLeave();"
})
Vielen Dank für die answers.If ich es in javascript.How tun will, kann ich umsetzen? –
Mussaib Siddiquis Antwort ist pures JavaScript. Aber du hast die Frage mit jquery lol versehen – Luke