Jquery Event onChange for Div
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-04-14T14:33:45Z
Indexed on
2010/04/14
14:53 UTC
Read the original article
Hit count: 327
I have a page with the following two divs:
<div id="searchResults">
</div>
<div class="postSearchOptions" style="display: none;">
</div>
Is there any way that I can make the "postSearchOptions" div appear when the "searchResults" div is updated by an AJAX call? I don't control the AJAX calls and I want to detect any change in the "searchResults" div.
I tried writing the following JQuery code, but then realized that it requires Jquery 1.4 and I only have 1.3:
$("#searchResults").live("change", function() {
$(".postSearchOptions").css("display", "inline");
});
Is there any way to catch the event of the searchResults div changing using either standard JavaScript or Jquery 1.3? Thanks!
© Stack Overflow or respective owner