How do I make jquery click test
test
Just click:
$("#mylink").click();
If your scripts are in the head then you need to ensure that the element exists, so the script should be executed when document is ready.
$(document).ready(function () { $("#mylink").click(); });