Hi all,
My system is, Oracle 12g, Apex 4.2, Theme 25.
I have a display only item whose source is PL/SQL.
In the pl/sql code, I have code something like
for rec_name in cursor_name
loop
........
htp.p( '<a href="" onclick="return false;" class="print-link" id=" '|| rec_name.pk_id ||' " value=" '|| rec_name.pk_id ||' "> Print </a></div>' );
.......
end loop;
It displays many records of href link Print. The user will click on any Print link. Now in dynamic action, I wish to capture the clicked link's id or value to do further javascript processing. How can I capture the id / value. I tried following, but nothing worked.
var capturedId = this.attr('id');
var capturedId = $(this).attr('id');
var capturedId = document.getElementById($("a#id"));
Any other way please ?