Код: Выделить всё
$(document).ready(function() {
// $('#webTicker').webTicker();
$("#faculty").change(function() {
$("#myModal").modal('show');
var id = $(this).val();
$.getJSON("/getdepartment/" + id, function(data, status) {
var $department = $("#department");
$department.empty();
$department.append('Select Department');
$.each(data, function(index, value) {
$department.append('' + value.department_name + '');
});
$("#myModal").modal("hide");
});
});
$("#state").change(function() {
$("#myModal").modal();
var id = $(this).val();
$.getJSON("/getlga/" + id, function(data, status) {
var $lga = $("#lga");
$lga.empty();
$lga.append('Select LGA');
$.each(data, function(index, value) {
$lga.append('' + value.lga_name + '');
});
$("#myModal").modal("hide");
});
});
$("#department").change(function() {
var id = $(this).val();
var p_id = document.getElementById("programme").value;
if (p_id == '') {
alert('you have not select your programme');
return;
}
$("#myModal").modal();
$.getJSON("/getfos/" + id + "/" + p_id, function(data, status) {
var $fos = $("#fos");
$fos.empty();
$fos.append('Select FOS');
$.each(data, function(index, value) {
$fos.append('' + value.fos_name + '');
});
$("#myModal").modal("hide");
});
});
$("#programme").change(function() {
var id = $(this).val();
$("#myModal").modal();
var $entry_month = $("#entry_month");
$entry_month.empty();
if (id == 4) {
$entry_month.append('Select entry month');
$entry_month.append('April Contact ');
$entry_month.append(' August Contact');
} else {
$entry_month.append(' january');
}
$("#myModal").modal("hide");
});
// course registration page
$('#register').click(function() {
if ($('input\[name="id\[\]"\]:checked').length < 1) {
alert('you have not select any course.');
return false;
}
var min = $('#minimum').val();
var max = $('#maximum').val();
var sum = 0;
$('input\[name="id\[\]"\]:checked').each(function() {
sum += Number($(this).val());
});
if (sum < min) {
alert('Your course unit is less than ' + min + ' units.Minimun course unit is ' + min);
return false;
} else if (sum > max) {
alert('Your course unit is more than ' + max + ' units. Maximun units is ' + max);
return false
}
});
$("#fac").change(function() {
$("#myModal").modal();
var id = $(this).val();
$.getJSON("/getdept/" + id, function(data, status) {
var $department = $("#dept");
$department.empty();
$department.append('Select Department');
$.each(data, function(index, value) {
$department.append('' + value.department_name + '');
});
$("#myModal").modal("hide");
});
});
$("#dept").change(function() {
var id = $(this).val();
var p_id = document.getElementById("programme").value;
$("#myModal").modal();
$.getJSON("/gfos/" + id + "/" + p_id, function(data, status) {
var $fos = $("#fos");
$fos.empty();
$fos.append('Select FOS');
$.each(data, function(index, value) {
$fos.append('' + value.fos_name + '');
});
$("#myModal").modal("hide");
});
});
$("#all_ids").change(function() { //"select all" change
var status = this.check
ed; // "select all" checked status
$('.ids').each(function() { //iterate all listed checkbox items
this.checked = status; //change ".checkbox" checked status
});
});
});Код: Выделить всё
[img]https://unicalexams.edu.ng/main/img/logo.jpg[/img]
[h4]
University Of Calabar Result Portal
[/h4]
Undergraduate Programme
Enter Jamb Registration Number
Copyright © 2026
[url=#]University Of Calabar[/url]
·
[url=#]Result Database Unit[/url]
Подробнее здесь: https://stackoverflow.com/questions/798 ... lid-or-doe