JSF rich:scrollableDataTable rowcount on javascript popop
I use javascript confirmation pop-up for one of the rich faces command button functionalities. On the same page, I also have a rich:scrollableDataTable
. Is it possible for me to show the nu开发者_运维百科mber of data rows in the table on the java script confirmation pop-up? If yes, how can i achieve that?
Thanks in advance - Avinash.
Using jQuery:
var count = $("#yourTableId tbody tr").length;
and then pass it to the pop-up.
精彩评论