0
I have javascript code that loads data at the click of a button, I would like to know how to load this same information on another button, IE, I would like to add one more element to the excerpt:
$(function () { $(".glyphicon-search"***SEGUNDO ELEMENTO AQUI***).click(function () {
Follow the JAVASCRIPT code
$(function () { $(".glyphicon-search").click(function () {
var id_codigo = $(this).data('codigo');
var id_situacao = $(this).data('situacao');
$(".modal-body #id_codigo").val(id_codigo);
$(".modal-body #id_situacao").val(id_situacao);
})
})