Using children() method we can retrieve id of element a single level down the DOM tree.
Example:
$(“.divTableCell”).click(function() {
var child_id= $(this).children.attr(“id”);
});
Using children() method we can retrieve id of element a single level down the DOM tree.
$(“.divTableCell”).click(function() {
var child_id= $(this).children.attr(“id”);
});