I doubt it's the problem, but trying changing your function name from hide()
, which is a jQuery function, to something else like hideDiv()
Since hide()
isn't being used with the jQuery tag ($.hide())
I doubt this is the issue, but worth a shot I guess.