While my first advice would be to throw jQuery in the trash and stop doing things that have no business being done client side with JS...
I see one glaring error in your markup -- ID's are unique, you can't use them more than once on a page... so if those two sets of id="min" and id="max" are on the same page, well there's your problem...
-- edit -- Kevin2 beat me to it.
Of course that DIV doesn't even have VALUE, MIN or MAX attributes
Attributes -- the deprecated ALIGN, and 'common attributes'
ID, CLASS, STYLE, TITLE, DIR, LANG, ONevent -- THAT'S IT!
There is no VALUE, there is no MIN, there is no MAX, so that script is halfwit garbage made by someone who has no business writing jack **** for the Internet; though that often goes without saying the moment you have someone using jQuery as most such folks don't know enough HTML, CSS or JS to be writing a blasted thing for the Internet.
Which is why that code would end up with around a DOZEN nice big fat validation errors too.