Also, I have no idea what you are doing with the value of "check".
You need to change this portion of your foreach loop:
Code: Select all
echo "<td class='b'><input type='checkbox' id='chk_Bx' value=". $addrss_owner. " onClick='selectFunction()'></input></td>";
Code: Select all
echo "<td class='b'><input type='checkbox' value=". $addrss_owner. " onClick='selectFunction(this)'></input></td>";
Then you can change your JS function to this:
Code: Select all
function selectFunction(item){
var check = item.checked;
var val = item.value;
alert(val);
}