I need to redirect to a new page on a button click. I need to write this using jquery. I don't know how to write the code for that. Here is my HTML
 <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
   <a class="btn btn-success" style="width: 100%" id='approve'>Approve</a>
</div>
and the script i wrote is
  $(document).ready(function() {
            //LIVEICON
            $('#approve').on('click',function(){
                var comment = $('#comments').val();
                if(($('#comments').val()!="")){                             
                    alert(comment);
                    $('#successalert').html('<strong>Approved...!</strong>').show().fadeOut(5000); 
                    }
                else{
                    if($("#comments").val()==""){$('#comments').css({'background-color':'rgba(255, 0, 0, 0.09)','border-color':'red'});$('#comments_er').css('display','block');}
                    if($("#approver").val()==null){$('#approver').css({'background-color':'rgba(255, 0, 0, 0.09)','border-color':'red'});$('#approver_er').css('display','block');}
                }
            });
        });
        $('#comments').change(function(){
            if ($('#comments').val()!="") {$('#comments').css({'background-color':'#fff','border-color':'#ccc'});$('#comments_er').css('display','none')}
            if ($('#comments').val()=="") {$('#comments').css({'background-color':'rgba(255, 0, 0, 0.09)','border-color':'red'});$('#comments_er').css('display','block')}
        });
        $('#approver').change(function(){
            if ($('#approver option:selected').val()!=null) {$('#approver').css({'background-color':'#fff','border-color':'#ccc'});$('#approver_er').css('display','none')}
            if ($('#approver option:selected').val()==null) {$('#approver').css({'background-color':'rgba(255, 0, 0, 0.09)','border-color':'red'});$('#approver_er').css('display','block')}
        });
What is the issue with this??
Thanks in advance
 
     
     
     
     
    