Hi all,
I have trouble passing value as selector value to other function.

$(document).ready(function(){
        var id = 'Test';
        $('#Name').keyup(function(){
                id = '#Mobil';
        });

        $(id).click(function(){
        console.log(id);
        });
});

I am getting on console value "#Mobil" but $(is) is using value
"Test". Thx for help in advance.

Charlie

Reply via email to