I am trying to use jQuery to do something like
if(jQuery(\'#id\').click) { //do-some-stuff } else { //run function2 }
But I\'m unsure h
This is all you need: http://api.jquery.com/click/
Having an "else" doesn't apply in this scenario, else would mean "did not click", in which case you just wouldn't do anything.