HABPanel custom widget; Button with action

Hello,
I’m trying to implement a custom widget at HABPanel and it currently lookes like this:

<div class="row">
	<input class="btn btn-primary" type="button" value="Wetter"	>
	<input class="btn btn-primary" type="button" value="Verkehr">
	<input class="btn btn-primary" type="button" value="Map">
</div>
<br>
<div class="row">
	#something like: if button "Wetter" pressed, do ...
	#something like: if button "Verkehr" pressed, do ...
	#something like: if button "Map" pressed, do ...
</div>

At the moment I have no clue, how I can do the actions.
Can anybody help me?

Thanks
Tobias

If you have solved your problem, please post the code to share for other users.
Thanks