Client Side Javascript to getRowCount()?

SSJgetComponent(“myRepeat”).getRowCount();

Is there a way in Client Side Javascript to “getRowCount()” of a repeat.

I’m trying to validate on a Save event if a repeat have data.

Subject: Idea…

Try to set a client side var using that statement:

CSJS:

var rowCount=#{getComponent(“myRepeat”).getRowCount()};

or some such.

Hope this helps…