[ create a new paste ] login | about

Link: http://codepad.org/BBB9D3DT    [ raw code | fork ]

Plain Text, pasted on May 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    var inputFirst  = jQuery('#jform_choose');
    var inputSecond = jQuery('#jform_action');

    inputFirst.on('change', function(){
alert(this.val());
        if (jQuery(this).val() == 0) {
            inputSecond.prop('disabled', true);
        }
        else {
            inputSecond.prop('disabled', false);
        }

    });



Create a new paste based on this one


Comments: