Do some when DIV content changes
Trying to do something when the content of a DIV changes and the new content is an "O" but it does not seem to work for me. My code looks like below. Any Ideas on how I can solve this problem.
- jQuery('.select2-chosen').bind('DOMSubtreeModified',function(event) {
- var newText = $(this).text();
- alert(newText);
- if ($('.select2-chosen:contains("O")').length === 1) {
- alert(newText);
- }
-
-
-
- });
It is the minum height inches field on
this page