Ok, looks like I figured it out. I had to use the parent() function:
var employeeCode = $(this).parent("li").find("[name=employee_code]").text();
Ok, looks like I figured it out. I had to use the parent() function:
var employeeCode = $(this).parent("li").find("[name=employee_code]").text();
That works, but is not intuitive.
It requires the user to click the list item first, then the delete button.
I just want to show a list of items, each with a delete split-button, and when the user clicks the split-button, it automatically either reads or is already set to to the employee_code.
NO, I wrote a .NET C# MVC Web API REST service that points to my MSSQL DB.