Wordprss Ajax

Add Below code on header file or any where you want to use wordpress ajax.

Add Below code in function.php

You mus be add both action add in function.php else it issue with some browser.