Can someone provide me with some assistance? I am facing an issue with a table row that contains a checkbox, textbox, and some numbers.
When I click on the row, the checkbox gets checked and clicking it again will make the checkbox get unchecked. However, there is an unwanted behavior where after checking the checkbox, if I click on the textbox to enter a value, the checkbox also gets unchecked. This is not the desired outcome. I want to disable the row select function only for the textbox cell. Can anyone help me with this?
Here is the JavaScript code snippet:
function selectRow(row)
{
var chk = row.getElementsByTagName('input')[0];
if (!chk.disabled) {
chk.checked = !chk.checked;
}
}