I typically don't use jquery but I have to use it to run an action. In my following code, the value is not alerted, making me believe there is a problem in my script. I have tried to look for a fix already but I couldn't find the error. Thanks for the help.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
$(document).ready(function(){
$("#formbtn1").click(function(e){
e.preventDefault();
var code = $('#code12').val();
alert(code);
});
});
</script>
The following is my HTML:
<form id="form">
<input type="text" class="form-control" id="code12" name="installer1_code">
<input type="submit" id="formbtn1" name="installer1_btn" class="btn btn-success">
</form>