I'm not sure how your code worked to begin with. You are not selecting any element by it's identifier or by a class name.
To select an element by it's identifier you need to add the # before the element id.
To select elements by their class you need to add the . before the the class name.
The below would select the elements by their identifier, assuming that is what they are.
$("#btnCreate").click(function () { $("#loadingdiv").show("slow"); $(this).attr("disabled", true); }); $("#loadingdiv").hide("fast");
DEMO - The above code assuming they are your ids
Regarding any page not being submitted or page not being reloaded that should not be impacted by the button being disabled.
Make sure your button is within the form is of type submitand that there is no script attached to the submit event preventing it or similar.