How to get parent comment’s id?

Since you use Ajax, then I would get the current comment from the REST Api, and then get the parent from that.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)