$("#insertTagHere").click(myFunction); //insertTagHere is button, myFunction is function to be executed