title: Getting an error in the second call of js function that contains ajax
body: <p>I'M SORRY FOR MY ENGLISH TYPING, i hope you understand me.</p>
  
  <p>This is the problem. I have a JS function <code>changeHierarchy()</code> that contains an ajax function that reload a table. The general HTML of the page is structured with some radius (outside from the table) that deppending which is selected the table reloads on different ways and it works ok, but the problem is when i try to reload this table pressing some button that is part from the table, when i press that button once is works ok, but when i press it secondly i get an error <code>Uncaught SyntaxError: Unexpected token &lt;</code> on my browser.</p>
  
  <p>I explain what referred to the different radius and buttons because i use de same JS function in two cases.
  I sure that the problem is because the buttons are inside the table.</p>
  
  <p>My only solution was call the JS function and then another function that reload my page like this:</p>
  
  <pre><code>onclick='changeHierarchy(&lt;? echo $voluntary?&gt;,2),reload();'
  </code></pre>
  
  <p>It work perfect but i don't want to reload de hole page.</p>
  
  <p>I don't understand so much but i imagine that could exist a way to refresh something related to the button for replace calling the function reload.</p>
  
  <p>Thank you so much if you can help me. </p>