Multiple event data-binding

51 views
Skip to first unread message

Bastian

unread,
Sep 26, 2017, 7:27:05 AM9/26/17
to KnockoutJS
Hi!

I am probably still a KO beginner.

I have this drop-down menu with an event data-binding. It works well right now.

<label>Century Built: <select id='centuryBuilt' data-bind='event: {change: filterCenturyBuilt}, enable: enableCentury'></label>
      <option value='' disabled selected id='defaultOptCB'>select option</option>
      <option value='6'>6th century</option>
      <option value='10'>10th century</option>
      <option value='11'>11th century</option>
      <option value='12'>12th century</option>
      <option value='13'>13th century</option>
      <option value='14'>14th century</option>
      <option value='16'>16th century</option>
 </select>

Now I want to call another function when this event/change eventListener is fired.

I already tried some alternatives, but every time I try something, the filterCenturyBuilt function does not work anymore!

Thank you very much for your hints!
Reply all
Reply to author
Forward
0 new messages