I have a simple dropdown list that I'm attaching a viewModel to though the observable method.
<input class="span-full" data-role="dropdownlist" id="DROPDOWNONE" data-bind="events: {open: getProps }, value: '+ __cols[n].name +' ">
I'm binding it to an open function like so:
getProps: function(e){
console.log("who am i?");
}
What I want to do is when a user opens the menu with their mouse is to have the value of the id passed to it. Like so.
getProps: function(e){
// Code I'm missing goes here.
// var id = grabsomething.fromsomeplace();
console.log(id); // Outputs DROPDOWNONE
}
Please help. Thanks