/ Published in: JavaScript
Expand |
Embed | Plain Text
function getCheckBoxList( ) { var cboxObj = document.getElementById ( "<%=CheckBoxList1.ClientID %>" ); var cboxList = cboxObj.getElementsByTagName ( 'input' ); var lbList = cboxObj.getElementsByTagName ( 'label' ); for ( var i = 0; i < cboxList.length; i++) { if (cboxList[i].checked ) { alert (lbList[i].innerText ); } } }
You need to login to post a comment.
