Posted on: 7/14/2014 12:54:50 PM | Views : 412

Hi,
I have some client side code for adding items to a check box:
function AddCategory() { if ($('#Content_Area_adminControl_txtCategory').val() == '') { alert('Please enter the category you wish to add in the textbox provided'); return; } var tableRef = document.getElementById('Content_Area_adminControl_cbCategories'); var rowCount = $('#Content_Area_adminControl_cbCategories tr').length; var tableRow = tableRef.insertRow(rowCount); var tableCell = tableRow.insertCell(); var checkBoxRef = document.createElement('input'); var labelRef = document.createElement('label'); checkBoxRef.type = 'checkbox'; labelRef.innerHTML = $('#Content_Area_adminControl_txtCategory').val(); checkBoxRef.value = $('#Content_Area_adminControl_txtCategory').val(); tableCell.appendChild(checkBoxRef); tableCell.appendChild(labelRef); return false ...

Go to the complete details ...