The problem was that the server creates an ID for the textbox so I can't jquery select by the client ID... unless I do it like this
function confirmHiredChange(ctrl) {
var tb = $("#<%= tbRecruitHiredDtm.ClientID %>");
var hireddtm = tb.attr("title");
if (hireddtm !== "" && hireddtm !== undefined)
return true;
else if (tb.val() === "")
return true;
return confirm('Are you sure you want to update this __?');
}
That correctly selects the server created ID for me. Also the === compare is slightly faster as it compares via direct compare.