My current situation involves having images like this:
<img src="image1.jpg" width="80" height="80" id = "wp" alt="workplace">
<img src = "image2.jpg" width="80" id = "tm" height="80" alt="team">
and then writing the onclick event for them:
$('img#wp').click(function() {
});
The issue I'm facing is that I can't use this method to insert a value into a form based on which image is clicked. Additionally, the images don't function like buttons, making them less mobile and tablet-friendly. How should I approach solving these problems?