I’ve got a jqxlistbox that is part of a form which I am submitting to a perl script. Everything works fine apart from when I delete the very last entry in the listbox and submit the form. The data from last item is held within the form.
Visit the example below and delete all of the items by clicking the remove button until the list box is empty, then hit submit. You’ll see the last deleted item is submitted to the form.
Example: http://jsfiddle.net/DfsTq/27/
test.pl is a basic perl script which prints the contents of the ‘list’ form input.
#!/usr/bin/perl
use CGI;
my $cgi = new CGI;
print $cgi->header(‘text/html; charset=UTF-8’);
print $cgi->param(‘list’);