javascript - jQuery .bind('show') not working appropriately when element is shown via jQuery -


i have snippet in project similar 1 seen below:

$('#field').change(function() {   var thiscondition = $(this).val();    if(thiscondition) {     $('#this_container').fadein();   } }); 

the above snippet working. when thiscondition evaluates true, container fade in. however, have snippet below not functioning expected. binds show when container fades in event triggered:

$('#this_container').bind('show', function() {   $.ajax({      ...   }); }); 

shouldn't snippet above react line 5 in change event handler? why bind method not triggering?

confirmed show not valid nor jquery-triggered event.

but can trigger yourself! try :

$('#this_container').fadein("slow", function() { $(this).trigger("show"); });


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -