How can I trigger an event when this span value changes?
问题 I'm trying to get a console log when the price of the current page's stock changes. page: https://www.google.com/finance?q=NASDAQ%3AGOOG&ei=yvbRVbHSCcKgmAGyu7CoDA Element ID: #price-panel > div > span > span Attempt 1: fail $("#price-panel div span span").onchange = function() { console.log('change')} Attempt 2: fail document.getElementById('price-panel').children[0].children[0].onchange = function() { console.log('change')} builtwith.com says the javascript is the "google api" which is