In the below code initially checkbox unchecked and textboxes disabled.when i click checkbox then textboxes enabled BUT after the enabled when i again unchecked checkboxes it need to be disabled.But that partis not working(else part)
Code

```
 $(function(){
    $("#txtres").attr("disabled", "disabled");
    $("#txtres2").attr("disabled", "disabled");

    $("#chknew").click(function () {
        if("#chknew").is(:checked)
        {
        $("#txtres").removeAttr("disabled");
        $("#txtres2").removeAttr("disabled");
        }
      else
      {
         $("#txtres").attr("disabled", "disabled");
         $("#txtres2").attr("disabled", "disabled");
        }
    });
    }

```