jquery and json help

jquery and json help

Hi Ladies and Gentlemen i want to match the value of my DropDown list with the first key from
the json_encode array from php, which a basically the same. So far i have done something like this. But not working  :(


      var testo =  $('#mydropdownlist').change(function() {
            ($(this).val());
        });


        var testo2 = (myJson[41].description);

        console.log(testo);


        if(testo === testo2){

            console.log('they match');
        } else {

            console.log('they dont match');
        }