Ubuntu Pastebin

Paste from farhad at Fri, 6 Jan 2017 07:44:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$("#rentPeriod").change(function(){
        var cost=1;
        p=this.value;
        let n=document.getElementById("rentNum");
        switch(p) {
            case 1:
                cost = 20000;
                break;
            case 2:
                cost = 2000;
                break;
            case 3:
                cost = 4000;
                break;
            case 4:
                cost = 8000;
                break;
            case 5:
                cost = 14000;
                break;
            case 6:
                cost = 50000;
                break;
            case 7:
                cost = 700000;
                break;
        }
        console.log(cost);
        let output = document.getElementsByTagName("output")[0];
        output.innerHTML = cost;
    })
Download as text