passing the href in ajax call code example Example: passing the href in ajax call <a href="javascript:onclickFunction('id')">a</a>