Например, код:
<tr class="list-surveyor-assign" data-id="xoghSatJFCJ">
<td style="width: 40%><p style="padding-bottom: 5px;">Miss Anna</p></td>
<button id="btnSelectSurveyor" title="Assign" class="btn btn-sm btn-primary" data-surveyor="xoghSatJFCJ">
<i class="fa fa-user-plus" aria-hidden="true"></i>
</button>
</tr>
<tr class="list-surveyor-assign" data-id="7G8s7AwTzkh">
<td style="width: 40%><p style="padding-bottom: 5px;">Miss Jane</p></td>
<button id="btnSelectSurveyor" title="Assign" class="btn btn-sm btn-primary" data-surveyor="7G8s7AwTzkh">
<i class="fa fa-user-plus" aria-hidden="true"></i>
</button>
Как нажать на кнопку id = "btnSelectSurveyor" с data-surveyor = "7G8s7AwTzkh"