Click on (some Cells) generated dynamically by php mySQL not working

Click on (some Cells) generated dynamically by php mySQL not working

Dear All

I Click on some cells generated dynamically by php mySQL not working

  1. $('#containerworkdiv').on( "click", "[id^='pp']", function() {
         var thisid=this.id;
         var dima=thisid.split('pp');
        
        var actualid = dima[1] ;
     
        var url = 'printproductionfill.php'
        var data =
        {
           id: actualid
         }
        $('#printproductionworkarea').text("Lading..........");
        $('#printproductionworkarea').load(url, data);
    });















This script works fine for id's = pp8 onwords

There is no response for id equal to pp 6 or pp7, (event the cursor property is not recognised) 

Pls help

Code / program that generated dynamically


  1.  <div class="box"  >
        <table width="95%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td width="32%" height="1" bgcolor="#CCCCCC"></td>
          <td width="68%"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="28" colspan="2"   valign="top" class="textheader">Print Production</td>
        </tr>
         <?php $tquery="SELECT * FROM printproductiontext  ";
              mysql_select_db($database_DBconnect, $DBconnect);
            $tResult = mysql_query($tquery, $DBconnect) or die(mysql_error());
            $trows = mysql_fetch_assoc($tResult);   
            $ttotalrows=mysql_num_rows($tResult);
             ?>
        <tr>
          <td height="28" colspan="2"   valign="top"><?php echo $trows['detail'];?></td>
          </tr>
        <tr>
          <td valign="top"><?php
    $query="SELECT * FROM printproduction  WHERE status=1 order by srno";
     
              mysql_select_db($database_DBconnect, $DBconnect);
            $Result = mysql_query($query, $DBconnect) or die(mysql_error());
            $rows = mysql_fetch_assoc($Result);   
            $totalrows=mysql_num_rows($Result);
     
    if ($totalrows > 0 ) {

     
    ?>
            <table cellspacing="1" cellpadding="4" bgcolor="#CCCCCC"  >
              <?php
        $i=0;
        do { $i++; ?>
              <tr>
                <td width="239"   bgcolor="#D5D9E2" class="edit" style="cursor:pointer" id='<?php echo "printproduction".$rows['id'];?>'>
                <?php echo $rows['name'];?>   </td>
              </tr>
              <?php  } while ($rows = mysql_fetch_assoc($Result));
     ?>
            </table>
            <?php
    }?></td>
        
          <td valign="top" align="justify"  id="printproductionworkarea">&nbsp;</td>
        </tr>
        </table>
      </div>