Checkbox list validation

Checkbox list validation

Here is the sample java script code to demonstrate that how can we validate a checkbox list inside the aspx page.

function a()
var tableBody = document.getElementById('CheckBoxList1').childNodes[0];
for (var i=0;i{
var currentTd = tableBody.childNodes[i].childNodes[0];
var listControl = currentTd.childNodes[0];
if (listControl.checked =true)
listControl.checked = false;
return false;

Happy Coding!!!!!!


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: