Can you change this code into jquery? : <p>I need help to change pure javascript code into jquery code</p>

<pre><code>document.getElementById('type').onchange = function (){
        if(this.value == "Student"){
            $("#cls").prop({disabled: false});
            $("#sec").prop({disabled: false});
            $('.cls').show();
            $('.sec').show();
            }
            else{
                $("#cls").prop({disabled: true});
                $("#sec").prop({disabled: true});
                $('.cls').hide();
                $('.sec').hide();
            }
    }  
</code></pre>
