Regarding Combobox

We have taken a combobox and filled in with names of states. we want
that after selecting name of state, state id should be pass to same
page.

Thank you.