Fork me on GitHub

Example: Basic ipv4 field creation

How to create a ipv4 field.

Basic IPv4Field creation

Use the following code to create a basic inputEx IPv4Field.

HTML

<div id="field-container"></div>

JavaScript

Implementation

YUI().use('inputex-ipv4', function(Y) {
   
   new Y.inputEx.IPv4Field({parentEl: 'container1', showMsg: true});
   
});