Is there a good IP Mask plugin for JQuery? I've tried Masked Input Plugin but it doesn't IP Addresses with less than 12 digits. Then I've tried meioMask and this doesn't work with less than 12 digits either. Any suggestions?
A:
The working examples from the Masked Input Plugin -
http://digitalbush.com/projects/masked-input-plugin/
Are less than 12 characters:
jQuery(function($){
$("#date").mask("99/99/9999");
$("#phone").mask("(999) 999-9999");
$("#tin").mask("99-9999999");
$("#ssn").mask("999-99-9999");
});
They have working examples which are running perfectly?
What is exatly is your issue and can you post anymore in depth information?
jQuery(function($){
$("#MyElementID").mask("10.0.0.0"); //Does this not work?
});
Are you trying to counter for 1-3 digits in each field?
eg to be able to.
$("#MyElementID").mask("1.0.0.0"); //this
$("#MyElementID").mask("10.10.10.10"); //or this
$("#MyElementID").mask("100.100.100.100"); //or this
If you be more descriptive you can get help..
If you are after that you can try something simpler by watermarking the input box rather than enforcing a mask, so you can vary the numbers that can be entered. See Jquery-Watermark - http://code.google.com/p/jquery-watermark/
Thqr
2010-07-19 05:56:09
Yes, i need 1-3 digits in each field, no specific number of digits. And I'm not sure how the watermark plugin would help.
gAMBOOKa
2010-07-19 06:06:31
Someone please explain reason for downvoting this?
Thqr
2010-07-19 07:23:32
I didn't downvote, but i need to know how to allow for masking 1-3 digits.
gAMBOOKa
2010-07-19 07:37:09
+2
A:
You can find your answer in this post :
http://mlntn.com/2009/12/30/jquery-ip-address-plugin/
and a demo for you to try
Philippe
2010-07-19 05:59:05
No documentation. It's a pain to try and get working. Retrieving values for instance.
gAMBOOKa
2010-07-19 07:39:31