For example i have a button in a form
<button id="test1 test2" value="test">TEST</button>
For some reason, I want the id "test1" used to get the $_POST value from the button using php and the id "test2" used to catch the onclick event from the user using javascript.
Is this possible or just some uncomfortably question?
Thanks in advance.
$_POSTuses thenameattribute.id. UtilizeclassName, ordata-*attributes for one oftest1ortest2