私のページにこのリンクがあります-最初の文字でエントリを検索します。アンカータグのテキストを、data-bind属性内のノックアウトのクリックイベントに渡したい。これは可能ですか?
<a href="#" data-bind="click: $parent.getManageableEntries()><%= Convert.ToChar(i + 65)%></a></li>
// here's my javascript method in my knockout view model
function ManageEntriesViewModel() {
var self = this;
this.getManageableEntries = function(firstLetter) {
// i want to pass in the text of the <a> tag as the 'firstLetter' variable
}
}