Function is...
function myDivFunction(obj) {
debugger;
alert(obj);
var x = document.getElementById(obj);
$(x).hide();
return false;
}
and you are calling it like...
onClick='myDivFunction(this.id)'
Suppose ID is "div1". So function will be called like
myDivFunction("div1")
.
After that in function, you are getting the element like
var x = document.getElementById(obj);
and then hiding it.
But you should directly use the ID like below...
$('#' + obj).hide();