select2:selecting event (get clicked value)

Created on 20 Jan 2016  路  2Comments  路  Source: select2/select2

can you add functionality to get the current clicked value in :selecting event, not in :select

Most helpful comment

I use evt.params.args.data.id to get the value.
Thanks

All 2 comments

You should be able to get the current clicked value using

evt.args.data.id

Because the arguments for preventable events are passed in as the .args.


This appears to be more of a usage question than a bug report or common feature request. As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.

I use evt.params.args.data.id to get the value.
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnohr picture dnohr  路  3Comments

FezVrasta picture FezVrasta  路  3Comments

dereuromark picture dereuromark  路  3Comments

mauroschiappo picture mauroschiappo  路  3Comments

ghost picture ghost  路  3Comments