I have this code:
<form name="ipForm" method="post">
<select name="ipList" size="10">
<option>192.168.254.2</option>
<option>192.168.254.3</option>
<option>192.168.254.4</option>
</select>
<a href="javascript:removeIP(document.ipForm.ipList.selectedIndex)">Remove</a>
<br> <br>
<input type="text" name="add_ip">
<a href="javascript:addIP(document.ipForm.add_ip.value, document.ipForm.ipList.length)">Add</a>
</form>
anyway to change javascript:removeIP(document.ipForm.ipList.selectedIndex) so that the form name can change and the call will still work? this.form.ipList.selectedIndex does not work. Thanks!