title: need to show alert when i scroll down a certain div in html
body: <p>i have a div in the middle of body tag</p>
  
  <pre><code>&lt;div id="place"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>what i want to do is, when i scroll down and come across the div with id "place", i want to show an alert.the logic i set is when the window scroll postion is greater than the div from the window top , i execute alert . i know that my logic is stupid ! but i want to learn how to do this .</p>
  
  <p>what i have tried so far</p>
  
  <pre><code>$(window).scroll(function(){
  
                  var toElement = $("#place").position(); 
                  if(scroll.positon() &gt; toElement){
                          alert("hello");
                      }
              });
  </code></pre>
  
  <p>i am new to jquery, so could you help me</p>