KendoUI - Как получить значение атрибута в `kendoTooltip()`
Я хотел бы получить значение type
входа.
Документы: KendoTooltip
$("input").kendoTooltip({
content:
function () {
return '<div>' + this.attr("type") + '</div>';
}
});
Но я никак не могу найти способ работать с this.
,
1 ответ
Это было так просто: e.target.attr("value")
content:
function (e) {
var text = e.target.attr("value");
return '<div>' + text + '</div>';
}