Looking for a non-JS solution. Say I had something like this:
<ul>
<li>
<form>
<fieldset>
...
<input type="submit" value="Submit"/>
</fieldset>
</form>
</li>
...
</ul>
Is there a way to do the following without JS:
- Make the submit button invisible, and
- Make any part of the
<li>clickable (meaning, it will submit the form)
???
You can use JS to submit a form without a sumbit button:
This is just a quick way to achieve this. If you are using JS for other problems as well you should not implement it directly (inline).
UPDATED – without JS:
Without JS you definitely need the input, but you could style it with css to your needs:
Via
topandleftyou could place it over the li.position:relativemight be better . it depends how you want to position it.