开发者

JSF rich:scrollableDataTable rowcount on javascript popop

开发者 https://www.devze.com 2023-01-12 20:53 出处:网络
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开发者_运维

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号