Çözdüm bu şekilde olacak
$(document).ready(function () {
  $(document).on ("click", ".goster", function () {
        alert("hi");
    });
});