I have a form like so and I am trying to get the submit-button to show an alert but it doesn't seem to be doing anything and I have no errors in the console. I have all the required jQuery included as I have a similar form in another section of the page and the input submit works but this form doesn't seem to be.
<div id="div_1" style="display:none;">
<form id="form1">
<fieldset style="border:0;">
<div>
<label for="name">Name</label>
<input id="name" name="name" placeholder="First name" required type="text">
</div>
<div>
<input id="submit-button" type="submit" value="Submit">
</div>
</fieldset>
</form>
<div>
<button id="close" type="submit" value="Close">
</div>
</div>
js
$("#submit-button").click(function(){
alert("boo");
});