Field Splitter plugin v0.1
Demo page for the plugin
Basic example, using all default values
Example #1:Example #2, some static configuration
Example #2:$("#test2").fieldSplit({ glue:"/", maxLength:2, numberOfFields:2, defaultValue:"__" });
Dynamic example. Using functions instead of static values for some of the configuration options
Example #3:
$("#test3").fieldSplit({
glue:"/",
maxLength:function(i) { return (i < 3)?2:4; },
numberOfFields:3,
defaultValue:function(i) { return (i < 3)?"__":"____"; }
});
Dynamic example. Using functions instead of static values for some of the configuration options
Example #4:
$("#test3").fieldSplit({
glue:"/",
maxLength:function(i) { return (i < 3)?2:4; },
numberOfFields:3,
defaultValue:function(i) { return (i < 3)?"__":"____"; }
});