Good day! I've got a problem with my code. We all know that we can only get the value of a <select>
or dropdown through POST and GET method (in submit button) and document.getElementById
(in <button>
and pass it through ajax to use it on PHP), my problem is I want to use <a>
tag because I'm going to generate or download an excel file (using PHPExcel) from the href
attribute of the </a>
, the data that will be processed and download by the link will be filtered based on the value of the <select>
, so is there any possible way to get the value of <select>
, process it on the page wherein <a>
will be redirected? Thank you!