call a javascript function inside ajax success function : <p>I Have an ajax success function that I wich to call inside it another javascript function, but i don't know the command or the JQuery function to do that.</p>

<p>Here is my function:</p>

<pre><code>  function save(id_matiere,id_grp,id_niv)
       { 
           $.ajax({
          url : "&lt;?php echo site_url('index.php/programme/ajouter_ens_mat')?&gt;",
          type: "POST",
          data: $('#form').serialize()+ '&amp;m='+ id_matiere+ '&amp;g='+ id_grp,
          dataType: "JSON",
          success: function(data)
          {
            afficher(id_grp,id_niv);
          }
        });
       }
</code></pre>

<p>The function name that I wich to call is called "afficher".</p>

<p>Tell me please how to do this.
thank you!</p>
