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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -