jquery using waypoint get id of element
问题 i'am using jquery waypoints (http://imakewebthings.com/jquery-waypoints/#docs) to check if an element is the view of the browser, here the html: <div class="container" id="container_1">1. Container</div> <div class="container" id="container_2">2. Container</div> <div class="container" id="container_3">3. Container</div> <div class="container" id="container_4">4. Container</div> here the js $('#container_1').waypoint(function() { console.log("container 1 is visible"); }); this works fine! But