What do you call this

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manleybruce
Forum Newbie
Posts: 6
Joined: Mon Nov 07, 2011 7:48 pm

What do you call this

Post by manleybruce »

I have a screenshot on this attach document but I do not know what you call this type of function in a html form. Is it just simply a textarea with a scrollbar which allows you to select numbers higher or lower? If I know what it is then I can research this I find out how to code it myself.

Thank You
Attachments
screenshot.jpg
screenshot.jpg
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: What do you call this

Post by Celauran »

It's generally called a spinner and doesn't exist in HTML. You can simulate them using JS, mind you.
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: What do you call this

Post by twinedev »

I'm not sure what it is called either, but here is some sample code:

http://javascript.internet.com/buttons/up-down-box.html

Note they use two separate input buttons, to do what you want, you'd need an image of two buttons and act upon clicking on that image.

-Greg
Post Reply