This is my code

```
$(function(){
    $('#dropdown_name').change(function(){
        var V = $('#dropdown_name').val();
        var T = $('#dropdown_name :selected').text();
    });
});

```

I want to send `V` and `T`'s value below function

```
function xyz()
{
    a = V;
    b = T;
    alert(a);
    alert(b);
} 

```

In Function `xyz`, I have to call many function so I don't want, it take as parameter of `xyz` function. So how can I get data in another way when I will select a dropdown then it will display alert(a and b) that value and text of dropdown.

How to solve it, please any suggestion.