【发布时间】:2022-01-17 12:07:41
【问题描述】:
有人可以帮助我了解如何为 append(response) 的输出创建超链接。
<script type="text/javascript">
$(document).ready(function () {
$("#Sid").change(function () {
if (document.getElementById("Sid").selectedIndex == 0) {
$("#Did").empty();
}
else {
var SitId = $(this).val();
debugger
$.ajax({
type: "post",
url: "/Dropdown/GetDeviceList?Sid=" + SitId,
contentType: "html",
success: function (response) {
debugger
$("#Did").empty();
$("#Did").append(response);
【问题讨论】:
-
您应该包含一个示例来说明响应的外观。
标签: c# jquery asp.net-mvc