Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html value up down arrows

Tags:

html

I know this is an extremely simple question... but I do not know the name of the element I am looking for so I can not research it.

I am looking to add one of those up/down arrow buttons that allows you to increment a textbox.

like image 368
Mark Avatar asked Jan 08 '10 15:01

Mark


People also ask

How do I make an up and down arrow in HTML?

There are three methods for adding arrows in HTML: entity number. entity name. hexadecimal reference.

How do you increase the size of an arrow in HTML?

You need to tell the html that you want the arrow to be big. The more bigger you want it, the more bigger you should tell it to be.


2 Answers

If you can wait for HTML5, you could have used input type="number" for this. You can find here a link to a live example (works in browsers supporting HTML5 only though, currently that's only Opera).

But until then you'll need to look around for a Javascript library using the keyword "spinner".

like image 72
BalusC Avatar answered Oct 24 '22 09:10

BalusC


I think what you're talking about is a Number Spinner/UI Spinner.

You'll need javascript in order to do something like this. Here is a jQuery example that you might find useful.

like image 37
Brandon Avatar answered Oct 24 '22 11:10

Brandon