I delete the element with remove()(this is a <li>c display: inline;, although the same problem exists with display: block;), and while the element is removed from the page, this space did not take up.
Is this the standard behavior, so should I use a different method? <li>contains a form field, so I want ideally not to have this form field sent to the server, so use remove()instead hide().
source
share