Last active
May 25, 2017 13:25
-
-
Save korayal/b1f6712b9fd900e429fbf3945458c8f7 to your computer and use it in GitHub Desktop.
MEB Ogretmen atamalari icin okul secme aparati
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1) Asagidaki kodda `a` degiskenini tercih listenizin sirasina gore duzenleyin. 6 haneli | |
okul numaralarinin son basamagina fazladan bir `0` daha ekleyin. Orn: 123456 -> 1234560 | |
2) Chrome veya benzeri bir modern tarayici ile Mebbis'e giris yapip atama sayfasina gelin. | |
3) F12'ye basarak konsolu acin. | |
4) Guncellediginiz asagidaki kodu yappistirip enter'a basin. | |
5) Dua edin. | |
6) Afiyet olsun. | |
*/ | |
// okul no listesi (sonuna 0 eklemeniz gerekiyor) | |
var a = ['1234560', '5678920']; | |
var ai = a.entries(); | |
for (let e of ai) { | |
$('#cmbKurum' + (e[0] + 1) + ' option[value="' + e[1] + '"]').prop('selected', true).change(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment