title: Function doesn't work after appending new element
body: <p>I have a problem with the "click" action on a new element created by a jQuery function, it doesn't work.</p>
  
  <p>I created a JSFiddle to this link (<a href="http://jsfiddle.net/swim89/dg64w3gt/" rel="nofollow">JSFiddle</a>), but it doesn't work perfectly because I can't call a Ajax request in JSFiddle.</p>
  
  <p>I have these two buttons,</p>
  
  <pre><code>&lt;input type="button" onclick="invia('SIC-034031','', 's');" value="AGGIUNGI" style="height: 20px; width: 110px; background-color: #A5EFC5 ; color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12px; background-repeat: no-repeat; background-position: left center;" id="iscriviSIC-034031" class="pulsanteIscrizioni" name="xaggiorna"/&gt;&amp;nbsp;
  &lt;input type="button" onclick="invia('SIC-034031','R', 's');" value="RISERVA" style="height: 20px; width: 110px; background-color: #F00000; color: #FFFFFF; font-family: Arial,Helvetica,sans-serif; font-size: 12px; background-repeat: no-repeat; background-position: left center;" id="iscriviRSIC-034031" class="pulsanteIscrizioni" name="xaggiorna"/&gt;
  </code></pre>
  
  <p>When you call the ajax function for the first time, button one answers with this output:</p>
  
  <pre><code>OK;I;SIC-034031
  </code></pre>
  
  <p>Button two is only used to erase. Button one creates.</p>
  
  <pre><code>&lt;input id="iscriviSIC-034031" class="pulsanteIscrizioni" type="button" name="xaggiorna" style="height: 20px; width: 110px; background-color: #03F; color: #FFF; font-family: Arial,Helvetica,sans-serif; font-size: 12px;" value="TOGLI" onclick="invia('SIC-034031','');"&gt;
  </code></pre>
  
  <p>When I click this new button, the ajax function return this,</p>
  
  <pre><code>OK;C;SIC-034031;;
  </code></pre>
  
  <p>Button one goes away and button two comes back.
  Now there is where the problem is, if I click on the first button, everything works. If I click in the second button, it doesn't work.</p>
  
  <p>Can you try to help me to find the problem, please?</p>
  
  <p>Thanks ;)</p>