I've been beating my head against my keyboard in frustration for at least 4 days trying to solve this. The HTML I'm forced to deal with has duplicate id issues. Can anyone tell me how to create a code that identifies or at least lets me click on the second one? These are the two lines of Code I'm dealing with.
<input name="butDelete" class="btn btn-danger" id="butDelete" type="submit" value="Delete">
<input name="butDelete" class="btn btn-primary" id="butDelete" type="submit" value="Delete This Cycle Record">
<input name="butDelete" class="btn btn-danger" id="butDelete" type="submit" value="Delete">
<input name="butDelete" class="btn btn-primary" id="butDelete" type="submit" value="Delete This Cycle Record">