Jump to content

up and down select form


dotkpay

Recommended Posts

I'm not clear as to what you want the list to look like but maybe a listbox.  AFAIK, you will have to use JS for the up/down arrows.  Something like this maybe:

http://viralpatel.net/blogs/2009/06/listbox-select-all-move-left-right-up-down-javascript.html

I meant the ones used for example by dating sites during registration for users to input their exact age. Imagine a user selecting his age from a list of 18-120 years. They are the size of a small text field with just up & down buttons. I can't seem to find a site using them at the moment cause I would have just looked through the page's source.

Thanx for your efforts.

This is done with javascript. You will add your buttons beside the select, and when they are clicked, the year is increased/descreased. You can also use a textfield and change the value of the textfield if you prefer this. The advantage of using a select however though is that even if the user has javascript disabled, they can still use the element and are restricted to the values provided.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.