aktuelle.kurse/m133/4_Modulinhalte_und_Uebungen/07-JQuery-skript/07-jQueryLoesungen/jQuery2.html
Harald G. Mueller cdff097ef7 muh
2022-03-17 11:19:26 +01:00

29 lines
537 B
HTML

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.js"">
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#btn1").click(function () {
alert("test1");
});
$("#btn2").click(function () {
alert("test2");
});
});
</script>
</head>
<body>
<form action="">
<input type='button' id='btn1' value='Show Test1 based on ID' />
<input type='button' id='btn2' value='Show Test2 based on ID' />
</form>
</body>
</html>