B4J Question Data table

besoft

Active Member
Licensed User
Longtime User
Hi
From DataTable trying to get the value of the first cell in the selected row. Please advise.
I've tried several cases, but without success.

B4X:
$("#example").on("click", "tr", function() {         
    var $name = $(this).children(":first").text();
});

This example should work, but there is no result.
 

besoft

Active Member
Licensed User
Longtime User
SOLVED

B4X:
    $("#table1").on("click", "tr", function() {
    var $name = $(this).children(":first").text();
    document.getElementById("name1").innerHTML = $name;
 
Upvote 0
Top