There is a chrome extension page popup.html:
<script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/popup.js"></script> <div id="wrapper"></div> <script type="text/javascript" src="js/store.js"></script>
The text in the div is generated in popup.js
In store.js, I execute:
var theValue = $('#wrapper').text(); console.log(theValue);
and get an empty string (on the page it is not empty). What is the problem?