P
P
personaljs2013-12-13 10:19:40
JavaScript
personaljs, 2013-12-13 10:19:40

How to catch select change in js?

There is a function that is called after the select value changes:

addDetail: function (ev) {
      
    },

And there is an event:
events: {
      'сhange .personal-data-interests-detail-select': 'addDetail'
    },

Everything seems to work well, but when you change the current value with the keys, this function is constantly launched. How can this action be disabled?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
personaljs, 2013-12-13
@personaljs

The problem was solved by changing the event type to click

A
Artur Panteleev, 2013-12-13
@arturpanteleev

What specifically don't you like? You call an event (value change) here is the function and it works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question