Assign a value to a variable in jquery


How do i assign a value to a variable in Jquery

    {var c2;
    alert (c2);


I am trying to set variable's value, it will be static. In next line i am trying to set dropdown's selected value using same variable. I know i can just type


But i have different requirement, please guide.

i have no idea why you have { there in your question.. are you missing something.. anyways assigning value to a variable is super simple.. use = operator

var c2 = "standard_desc";