I've seen various ways to attach event handlers using JQueryy and although each seem to work, I'm just not sure if they are at all different or if either are deprecated.
$(document).on("click", ".someSelector", function (event) {
// do work...
});
$(function () {
$(".someSelector").click(function (event) {
// do work...
});
});