CheckBoxList
$("#checkBoxList tr").each(function
() {
var
checkBoxes = $(this).find("input[type='checkbox']");
var
checkid = checkBoxes[0].getAttribute('id');
var
checkbox = document.getElementById(checkid);
if
(checkbox.checked)
isCheckBox = true;
});
RadioButtonList
$("#radioButtonList tr").each(function () {
var
radioButtons= $(this).find("input[type='radio']");
var
radioid= radioButtons[0].getAttribute('id');
var
radioButton= document.getElementById(radioid);
if
(radioButton.checked)
isRadioButton = true;
});
var options =
$("#listBox").find("option");
if (options !=null
&& options.length !=0 ) {
for
(var i = 0; i < options.length; i++) {
if (options[i].selected)
isCheckList = true;
}
}
Hiç yorum yok:
Yorum Gönder