Hello everyone. :)
I make a website, there is a news editor in the admin panel. When clicking on the news, a dialog box should appear with a form for editing the news.
$(".edit").click(function () { var elementId = $(this).parent().attr("rel"); $.get("/Admin/EditNews", { id: elementId }, function (data) { $(data).dialog({ modal: true, title: "Редактор новости", width: 580, height: 450 }); }); });
That is, the form is requested via get, and then placed in the dialog box. In fact, everything works correctly, except for one moment. For some reason FIVE dialog boxes appear. With the form only one, the remaining 4 only with the title. And to start editing the news, you must first close the first 4.)
What kind of bug is this?