How to handle the onclick attribute of a link with a link class?

Hello! Please tell me, is it right to apply the funds phpquery to the onclick attribute of a link with a link class as follows

Doing so
$res= pq($tr)->find('a.link')->attr('onclick');
July 8th 19 at 16:41
1 answer
July 8th 19 at 16:43
no need to do so...

Find more questions by tags HTMLjQueryWeb Development