I have a button. As soon as i click the button i get an event object. with the event object i can say event.target.
With event.target i get following string:
<button class="mdi mdi-barley mdi-input-icon" id="vegan" date="7"></button>
i get the id with event.target.id
i get the class with event.target.class
if i say event.target.date i get null
i set the date attribute with the method element.setattribute();
How can i get thevalue of the prop date?