Knockout Template

<select data-bind="event:{ change: permissionChanged}">
    <option data-bind="i18n: 'Yes', value: 'yes'"></option>
    <option data-bind="i18n: 'No', value: 'no'"></option>

Js Function

permissionChanged: function(obj, event){
    console.log('value Changed');

So basically I want to access the value when the end-user changes the value on the select element.

Currently when the user changes the value in the dropdown then the function is called but I want value there.

Your help will be appreciated. Thanks in advance.

enter image description here

  • Added answer let me know if it's helpful or not. Commented Jan 21, 2022 at 11:42

1 Answer 1


Try with this below code :

  • Thanks :) @Rohan Commented Jan 21, 2022 at 11:42
  • Mark as upvote and accept answer if it's useful. Commented Jan 21, 2022 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.