javascript - problem with clone - jquery/php -


i have div has inside piece of php code

i need replicate div , php, how can that?

clone method doesn't work php , clone div without php code.

<div id="wrap" style="margin: 80px;">         <p>             <label>Área profissional :</label> <select name="area" class="area">                 <option selected="selected">seleccione Área</option>                  <?php                 $sql=mysql_query("select id_formation_area, area formation_area");                 while($row=mysql_fetch_array($sql)){                     $area=$row['area'];                     $id_area=$row['id_formation_area'];                     echo '<option value='.$id_area.'>'.$area.'</option>';                 }                 ?>              </select> <label>profissão:</label> <select name="profissao"                 class="profissao">                 <option selected="selected">seleccione profissão</option>             </select> <label>gráfico:</label> <select name="estatistica"                 class="estatistica">                 <option selected="selected">seleccione estatistica</option>             </select> <span class="remove">remove</span>         </p>         <p>             <span class="add">add fields</span>         </p>     </div> 

  1. you can't use client side technology (without ajax support) clone server-side code
  2. it seems mysql query not return different result if query again, means (point 3)
  3. since php code generating html output, cloning output equivalent "outputing whole thing once again"!

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -