testmail 1993 testmail 1993 - 1 year ago 145
Javascript Question

Jquery plugin input field to accept more than one IP address

I'm trying to use a Jquery plugin for handling IPV4 addresses. Plugin is available at https://github.com/felipevolpatto/jquery-input-ip-address-control

The issue is I can use only one text field for IPV4 address. If I use one more, I could see only normal text field with out any separators. How can I use it for more than one text field for IPV4 address?


<form role="form">

<div class="form-group">
<label>Starting Address</label></br>
<input type="text" name="ip1" id="ipv4">

<div class="form-group">
<label>Ending Address</label></br>
<input type="text" name="ip2" id="ipv4">

<script src="js/jquery.input-ip-address-control-1.0.min.js"></script>

Answer Source

You cannot use same id in this case. Change id="ipv4" to class="ipv4" and try

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download