I need to submit combo box value with out form. When I click on any value of combo that suppose to submit automatically using javascript. I am using PHP in backend.
<select name="select" id="select" style="width:50px;">
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="All">All</option>
</select>
Here a js part:
And you need to change your
selectdeclaration:OK, how to send
valto the server is another question… If you are using jQuery – you can usejQuery.ajax(...)or any helper likejQuery.get(...). If you are vanilla-js user you can useXMLHttpRequestway and if you use any other lib – just check this lib’s documentation to get helped about sending data to the server.