title: Jquery- Unable to get alert after changeing the select option
body: <p>I am trying to get alert on change of select box option.</p>
  
  <p>Here, i added a css class name on each selectbox while iterating it in the loop, and finally i called the jquery function with class selector.</p>
  
  <p>But i do not know why its not showing alert on change of selectbox dropdown. Please help me to solve this problem</p>
  
  <pre><code>  &lt;table style="border:1px solid red;" width="650px"&gt;
  &lt;tr style="border:1px solid red;"&gt;
  &lt;td"&gt;Status&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  $qry = "select *from tracker group by orderno";
  $res = mysql_query($qry) or die(mysql_error());
  while($data =  mysql_fetch_array($res))
  {
  ?&gt;
  &lt;tr style="border:1px solid red;"&gt;
  &lt;td  &gt;&lt;label onclick="show(this.id)" id=&lt;?php echo $data['orderno'];?&gt; &gt; &lt;?php echo $data[1]; ?&gt;&lt;/label&gt;&lt;/font&gt;&lt;/td&gt;
  &lt;td  &gt;&lt;?php echo  $data['customername'];  ?&gt;&lt;/td&gt;
  &lt;td align="center" style="border:1px solid red;"&gt;&lt;?php  echo $data['noofbooks']; ?&gt;&lt;/td&gt;
  &lt;td  &gt;&lt;?php echo $data['address']; ?&gt;&lt;/td&gt;
  &lt;td  &gt;&lt;?php echo $data['mobileno'];  ?&gt;&lt;/td&gt;
  &lt;td align="center" style="border:1px solid red;"&gt;
  
      &lt;select name="status" class="selectboxid"&gt;  
  &lt;?php 
  if($data['status']  == "despatch")
  {
          echo '&lt;option name="despatched" selected="selected" value="despatched"&gt; Despatched &lt;/option&gt;';
  }
  else
      {
      echo '&lt;option name="despatched"   value="despatched"&gt; Despatched &lt;/option&gt;';
  }
    if($data['status'] == "Pending")
  {
          echo '&lt;option name="pending" selected="selected" value="pending"&gt; pending &lt;/option&gt;';
  }
  else{
     echo '&lt;option name="pending"  value="pending"&gt; pending &lt;/option&gt;'; 
  }
    if($data['status'] == "deliver")
  {
          echo '&lt;option name="despatched" selected="selected" value="despatched"&gt; Despatched &lt;/option&gt;';
  }
  else
      {
      echo '&lt;option name="despatched" value="despatched"&gt; Despatched &lt;/option&gt;';
  }
    if($data['status'] == "partial")
  {
          echo '&lt;option name="partial" selected="selected" value="partial"&gt; Partial &lt;/option&gt;';
  }
  else
  {
      echo '&lt;option name="partial" value="partial"&gt; Partial &lt;/option&gt;';
  }
   ?&gt;
  
  &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  }
  ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And my jquery code is;</p>
  
  <pre><code>&lt;script&gt;
  $(".selectboxid").change(function() { 
      alert("hi");
  });
  &lt;/script&gt;
  </code></pre>