var hubber = $.connection.userInfoHub; $(function () { $.connection.hub.logging = true; var v = document.getElementById("userId").innerHTML; console.log(v); $.connection.hub.qs = { 'userid': v }; $.connection.hub.start(); hubber.client.showNewPass = function (pass) { $("#inppassreset").html(""); }; }); function resetPass(uid) { hubber.server.resetPassword(uid); }