I'm a backend developer, so I need help with this frontend part.
<input id="entered_value" type="number" name="entered_value"> <input id="entered_valuetwo" type="text" name="entered_valuetwo"> <select id="selected_value" name="selected_value"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <button type="button" id="send-data">点击我</button>
When the button is clicked, it already triggers something in my JS. But, the best way is how to pass "entered_value", "entered_valuetwo" and "selected_value" to button at the same time and then they are passed to js function.
just add this to your js