Forum

select - trigger ev...
 
Notifications
Clear all

select - trigger event on same selection

1 Posty
1 Users
0 Reactions
1,320 Widok
0
Topic starter

change event not working

1 Answer
0
Topic starter
1
2
3
4
5
6
7
8
$(document).on('mouseup', '.my_select_objects', function (e) {
    var open = $(this).data("isopen");
 
    if(open) {
          alert('my action');
     }
     $(this).data("isopen", !open);
});
$(document).on('mouseup', '.my_select_objects', function (e) {
    var open = $(this).data("isopen");

    if(open) {
          alert('my action');
     }
     $(this).data("isopen", !open);
});

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: