Решение найдено.
Спасибо за помощь в нахождении решения.
var prefix_acc = 'acc_';
$(function() {
$('[id^="' + prefix_acc + '"]').click(function() {
var id_acc = $(this).attr("id");
//var id_acc = $(this).data("fname");
MyFunction(id_acc);
});
function MyFunction(inp_id) {
//код выполнения
$("[data-debug]").text(inp_id);
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<input type="text" data-fname="number" id="acc_number"><br>
<input type="text" data-fname="date" id="acc_date"><br>
<input type="text" data-fname="name" id="acc_munit"><br>
<input type="text" data-fname="dislt" id="acc_tlocal"><br>
<input type="text" data-fname="disln" id="acc_loc"><br>
<input type="text" data-fname="disla" id="acc_obl"><br>
<input type="text" data-fname="objects" id="acc_objects"><br>
<input type="text" data-fname="laborators" id="acc_laborators"><br>
<input type="text" data-fname="types" id="acc_types"><br>
<input type="text" data-fname="materials" id="acc_materials"><br>
<input type="text" data-fname="study" id="acc_study">
<hr>
<div data-debug> Data-Fname / ID </div>