$(document).ready(function () {
$("#button").click(function () {
$(".test").hide();
});
});
try the above statement and it should work. Also make sure you have correct closing and starting tags as suggested by user : s_mon
In jquery if you are accessing control by ID then you should provide #YourControlID and
if you want to access by Class then you should write .YourControlClass.