Well, actually 2 options. Each time you Change the select to change the value of the thread in which the hidden inpit and work with it.
Well, or something like that...
Well second, take the value directly from the select by its id for example. because there is absolutely no point to assign it a value, the stylized menu, it's only for beauty.