my Jquery code works fine if i dont keep the code inside function and call it but as a function not working
<script>
$(document).ready(function(){
$("input:radio").change(function(){
checkResult();
});
});
function checkResult()
{
$this=$(this).parent("div.QA");
$this.slideUp();
}
</script>