How to launch the normal function in jquery <p>I have some links to launch ajax.</p> <pre><code>&lt;a href="javascript:void(0)" onclick="artClick(1)"&gt;1&lt;/a&gt;&lt;br&gt; &lt;a href="javascript:void(0)" onclick="artClick(2)"&gt;2&lt;/a&gt;&lt;br&gt; &lt;a href="javascript:void(0)" onclick="artClick(3)"&gt;3&lt;/a&gt;&lt;br&gt; . . </code></pre> <p>These links are made by script so I cant use #id.</p> <p>my javascript is this </p> <pre><code>function artClick(id){ $.post(url, { id:id },function(data){ }); } </code></pre> <p>but it doesnt work. I think I should use</p> <pre><code>$(document).ready(function() { }); </code></pre> <p>But if I put the function in this,nothing changes.</p> <p>I want to know the good way to handle the multiple links and ajax.</p>