$(document).ready( function() { var x = $("#bar").each ( console.log("rar"); ); } );
test