Title: get details/images from datagrid view Post by: zudu on February 13, 2018, 08:05:17 AM In a case like this: https://www.jeasyui.com/tutorial/datagrid/datagrid21.php, how can I click and select the image and make it bigger?
Title: Re: get details/images from datagrid view Post by: stworthy on February 14, 2018, 08:24:36 AM Bind a 'click' event on the image, open a dialog to display a bigger image.
Title: Re: get details/images from datagrid view Post by: zudu on February 14, 2018, 10:03:02 AM yes, that's precisely what I want to do...but I can't find any selector that works with the image. I tried
$(".img").on("click", function() { //manage the image }); or, using delegated event handler (because the img is added only after the detail row is shown) $("body").on( "click", ".img", function() { //manage the image }); None of the above code "clicks" any event...I tried changing the selector, assigning an ID or different class name, but it just doesn't seem to "see" the added row... |