我有一个带有关闭按钮的剑道标签。问题是我无法获得按钮单击事件来关闭该选项卡。
@(Html.Kendo().TabStrip()
.Name("test")
.Items(tabstrip =>
{
tabstrip.Add().Text("")
.Selected(true)
.ContentHtmlAttributes(new { style = "overflow: auto;" })
.Content("");
})
.SelectedIndex(0)
)
<script>
tab.append({
text: "" + name + " <input type='button' id='ddddd'>X</input> ",
contentUrl: content,
encoded: false
//imageUrl: "/Images/close.png" <span class='tabdelete k-button'><span class=' k-icon k-i-close' ></span></span>
})
$("#ddddd").click(function () {
alert("done");
});
</script>