my button doesn't work when I click on it nothing happens. This is my HTML for it:
<form id="myform" name="myform" action="senden.php" method="get">
<ul><div>
<li>
<button id="testbutton" name="testbutton" value="abgesendet2" type="button">test</button>
<p> Felder mit einem Stern müssen ausgefüllt werden! </p>
</ul>
</form>
and this is my jQuery for it (the button is in a form):
<script>
jQuery('document').ready(function(){
$("#myform").on('click', '#testbutton', function(){
alert("test");
});
});
</script>