У меня есть 2 переключателя, и я хочу отключить флажки в array
, если щелкнуть переключатель.Вот код из предыдущего поста в .net
.
Я использую ASP
classic и был бы признателен за помощь в изменении этого кода или кода, который лучше всего достиг бы моей цели.
<input type="radio" name="group" value="value1">
<input type="radio" name="group" value="value2">
This is the checkbox that is in the loop for the array:
<input type="checkbox" name="items" value="<%=Rs("item") %>">
$(document).ready(function () {
$('#<%= rbRadioButton.ClientID %> input').change(function () {
// The one that fires the event is always the
// checked one; you don't need to test for this
alert($(this).val());
});
});