at_eresep").html(data).show();
          $("#racikan_eresep").hide();
        });
    }

  });

  // ketika baris data diklik
  $("#obat_eresep").on("click", ".pilih_obat", function(event){
    var baseURL = mlite.url + '/' + mlite.admin;
    event.preventDefault();

    var kode_brng = $(this).attr("data-kode_brng");
    var nama_brng = $(this).attr("data-nama_brng");
    var biaya = $(this).attr("data-dasar");
    var stok = $(this).attr("data-stok");
    var stokminimal = $(this).attr("data-stokminimal")