I have added some javascript function in my partial page. But it is not firing. Need help.
Thanks in advance
@section scripts {
<script type="text/javascript">
$(document).ready(function () {
$('#btn').click(function (event) {
alert("Hi");
var filterstring = $('#txtCode').val();
$.get("/Test/Details?filterstring=" + $('#txtCode').val() + "", function (data) {
var getHTML = $(data);
$('#WebGrid').empty();
$('#WebGrid').html($('#WebGrid', getHTML));
ChkAddClass();
});
});
</script>
}