Is it possible with jQuery to have an onclick function without any selector? So instead of this:
$('#div').click(function() {
You would have this:
$(anything).click(function() {
Ive tried using html and body as the selector. This works fine except on iPhones, so is there a standard way of saying ‘anything’ as a selector?
Try this
or better delegate it back to the body
as Lonesomeday Suggested as an alternative