<script src="js/jquery.js"></script>

<!-- Include all compiled plugins (below), or include individual files as needed -->

<!-- bootsrap -->
<script src="bootstrap-3.3.4/js/bootstrap.min.js"></script>


<!-- <script src="tab_content/js/tabcontent.js"></script>
<script src="bootstrap-3.3.4/js/username_available.js"></script>
<script src="js/email_available.js"></script> -->
<script src="js/functions.js"></script>

<!--<script src="../js/jquery-1.10.2.js"></script>  call the ajax files -->




<!-- call DataTables -->
<script type="text/javascript" charset="utf8" src="DataTables-1.10.4/media/js/jquery.dataTables.js"></script>

<script type="text/javascript" charset="utf8" src="DataTables-1.10.4/js/dataTables.responsive.js"></script> <!-- making the Table responsive -->
<script type="text/javascript" charset="utf8" src="bootstrap-datatables/js/dataTables.bootstrap.js"></script><!-- making the tables having styles -->





<!-- ########################### call all the jquery ui themes and js files ###########################################-->
<!-- <link rel="stylesheet" href="ui/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">

<script src="ui/jquery-ui-1.10.4/js/jquery-1.10.2.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.core.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.widget.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.mouse.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.button.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.draggable.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.position.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.dialog.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.datepicker.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.slider.js"></script>
<script src="ui/jquery-ui-1.10.4/js/jquery.ui.autocomplete.js"></script> -->


<!-- <script src="../sweetalert/dist/sweetalert.min.js"></script>
<script src="../sweetalert/dist/jquery.min.js"></script> -->


<script type="text/javascript">
	$(document).ready(function(){

	//when entry mode is selected
	$('#entry_mode').change(function(){
		var entry_mode = $('#entry_mode option:selected').val()
		//var lga = $('#schl_lga option:selected').val();
		//when Transiting
		// if (entry_mode === '1'){
	  //       //alert(entry_mode);
    //
    //       //commented on the 3 of July for the purpose of  creating DUAP programme
    //       // $('#jamb_info').addClass('hidden');
	  //       // $('#jamb_no').removeAttr('required');
	  //       // $('#jamb_score').removeAttr('required');
    //       //
	  //       // $('#trans_info').removeClass('hidden');
	  //       // $('#pre_no').attr('required','true');
    //
	  //      // when JAMB
    //    }
    //    else
    if (entry_mode === '1' || entry_mode === '2'){

	      //	$('#trans_info').addClass('hidden');
	      	//$('#pre_no').removeAttr('required');

	        $('#jamb_info').removeClass('hidden');
	        $('#jamb_no').attr('required','true');
	       // $('#jamb_score').attr('required','true');

	      }else{
	      	//$('#trans_info').addClass('hidden');
	      	$('#jamb_no').removeAttr('required');
	        //$('#jamb_score').removeAttr('required');
	        //$('#jamb_info').addClass('hidden');
	        //$('#pre_no').removeAttr('required');
	      }


	});
	    //get messages
	    var err_msg = $('.err_msg').val();
      var suc_msg = $('.suc_msg').val();
      var info_msg = $('.info_msg').val();
	    //var err_len = err_msg.length;
      if (err_msg){
        display_alert(err_msg ,'Error', 'error' );
        //display_alert(err_msg ,'Success', 'success' );

      }

      if (suc_msg){

        display_alert(suc_msg ,'Success', 'success' );

      }

      if (info_msg){

        display_alert(info_msg ,'Info', 'info' );

      }



      function display_alert(msg,tit, ic ){

        var msg_len = msg.length;
         if(msg_len > 1){
          //alert(msg )
            swal({
                title: tit,
                text: msg ,
                icon: ic,
                 //closing sweet alert pop up
                timer: 5000
            });
        }
      }

      //closing sweet alert pop up
      //setTimeout(swal.close, 3000);


	});


</script>

<script>

/********************* date picker *******************/
/*$(function() {
	$( "#datepicker1" ).datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: 'yy-mm-dd'
	});

	$( "#datepicker2" ).datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: 'yy-mm-dd'
	});

	$( "#datepicker3" ).datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: 'yy-mm-dd'
	});

	$( "#datepicker4" ).datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: 'yy-mm-dd'
	});


});*/
/******************************* date picker ends ************************/





</script>
