$("tbody#mtbody td").click(function(e) {
var currentCellText = $(this).text();
alert(currentCellText); //for testing
$.get("getowner.php", { getownerID: currentCellText },
function(data){
window.opener.$('input#ownerid').val(data.ownerid);
window.opener.$('input#petowner').val(data.petowner);
window.opener.$('input#ostreet').val(data.ostreet);
window.close();
},"json");
});
This code WORKS to return values from a popup window, and in that popup I have a php table.
If I load the same exact table inside a div within the popup I can’t figure out how to return the values. Help please.
I believe this line:
$("tbody#mtbody td").click(function(e)
would need changing, I can’t figure out how.
Div is named ownerdiv