                data: {"class": jQuery('#classname').val()},
                url: '/classview',
                cache:false,
                contentType:'application/x-www-form-urlencoded',
                dataType:'text',
                success: function (data) {
                    var result = jQuery.parseJSON(data);
                    console.log(result);
                    var classresult=document.getElementById('searchresult');
                    classresult.style.display="";
                    c