Download JavaScript Code Examples, Tutorials, Reference

Provide thousands of free JavaScript code examples, DHTML, HTML JavaScript Tutorials, Reference and Help. JavaScriptBank.com is the best JavaScript resources




Over 2000+ free Javascript
at JavaScriptBank.com Website
Sampled by JavaScriptBank.com

A spin edit control

Properties

Methods

id = name of the object - required for onclick events spinup = onclick event handler for up button
div = id of the DIV tag in which the control will be placed spindn = onclick event handler for down button
readonly = if true text entry will not be allowed spinchange = onchange event handler for text if not readonly
min = minimum value create = redraw the control
max = maximum value show = show properties - if speditdiv exists then creates editable table else alert
step = increment normalize = makes sure values are consistent, then refreshes spin edit and show
STEP = big increment (if non-zero - fast buttons will display)
value = current value
width = text width in pixels
height = text font size in pixels

Change any of the property values below,
then tab out of the text box to see the change.
Simply click on the readonly value to change it.