This is what your code currently does:
$(document).ready(function () {
alert("dsdsdsd");
$('#btnSearch').click(function () {
alert("button clicked");
});
});
$('#Text2').hide();
});
That causes a syntax error.
I assume you want the last
});
to close the 'ready' event handler. Remove the
});
below the
"button clicked"
line. Then your code will do this, which will work fine:
$(document).ready(function () {
alert("dsdsdsd");
$('#btnSearch').click(function () {
alert("button clicked");
});
$('#Text2').hide();
});