javascript - Use onclick or click binding with knockoutjs to pass parameters
I have this function:
function make(place)
{
place.innerHTML = "somthing"
}
I used to do this with plain JavaScript and html:
<button onclick="make(this.parent)">click me</button>
How can I do this using idiomatic knockout.js?
This question and all comments follow the
"Attribution Required."
All Answers
Leave a Reply