I am trying to use events from the select2 silk web pattern but with no luck

here it is my code to achieve that:

$('.Users').on('select2:open', function (e) {
  alert('test');
});

Users is the class in the select dropdown widget

Any help?

Hi Filipe Lourenço,

Try with below syntax it should work.

$('.Users').on('open', function (e) {
  alert('test');
});

Sravan


Sravan Vanteru wrote:

Hi Filipe Lourenço,

Try with below syntax it should work.

$('.Users').on('open', function (e) {
  alert('test');
});

Sravan



No. Doesn't make sense to me and is not working