inputEx - IntegerField Usage

Basic IntegerField creation

Use the following code to create a basic inputEx IntegerField.

new YAHOO.inputEx.IntegerField({parentEl: 'container1', showMsg: true});

IntegerField with options

Test IntegerField with more options.

new YAHOO.inputEx.IntegerField({parentEl: 'container2', showMsg: true, required:true, typeInvite:"Enter a number"});

Negative values

Set the negative attribute to true if you allow negative values.

new YAHOO.inputEx.IntegerField({parentEl: 'container3', showMsg: true, required:true, negative:true});