ztabularinputmanager with JS validation


I use ztabularinputmanager and I’d like to add rows with Javascript as described here.

Can I use Javascript validation for the newly added rows in this case?

As I see the JS validation code is created when the page is created and I would need to insert new JS code too when I insert a new row. Is this possible?

Or any alternate way to accomplish this?